r67868 - in /trunk/libcgi-pm-perl: Changes META.yml debian/changelog lib/CGI.pm t/cookie.t
periapt-guest at users.alioth.debian.org
periapt-guest at users.alioth.debian.org
Tue Jan 25 22:09:35 UTC 2011
Author: periapt-guest
Date: Tue Jan 25 22:09:17 2011
New Revision: 67868
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=67868
Log:
New upstream release
Modified:
trunk/libcgi-pm-perl/Changes
trunk/libcgi-pm-perl/META.yml
trunk/libcgi-pm-perl/debian/changelog
trunk/libcgi-pm-perl/lib/CGI.pm
trunk/libcgi-pm-perl/t/cookie.t
Modified: trunk/libcgi-pm-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-pm-perl/Changes?rev=67868&op=diff
==============================================================================
--- trunk/libcgi-pm-perl/Changes (original)
+++ trunk/libcgi-pm-perl/Changes Tue Jan 25 22:09:17 2011
@@ -1,3 +1,14 @@
+Version 3.52
+
+ [DOCUMENTATION]
+ - The documentation for multi-line header handling was been updated to reflect
+ the changes in 3.51. (Mark Stosberg, ntyni at iki.fi)
+
+ [INTERNALS]
+ - Add missing t/tmpfile.t file. (RT#64949)
+ - Fix warning in t/cookie.t (RT#64570, Chris Williams, Rainer Tammer, Mark Stosberg)
+ - Fixed logic bug in t/multipart_init.t (RT#64261, Niko Tyni)
+
Version 3.51
[NEW FEATURES]
Modified: trunk/libcgi-pm-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-pm-perl/META.yml?rev=67868&op=diff
==============================================================================
--- trunk/libcgi-pm-perl/META.yml (original)
+++ trunk/libcgi-pm-perl/META.yml Tue Jan 25 22:09:17 2011
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: CGI.pm
-version: 3.51
+version: 3.52
abstract: ~
author: []
license: unknown
Modified: trunk/libcgi-pm-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-pm-perl/debian/changelog?rev=67868&op=diff
==============================================================================
--- trunk/libcgi-pm-perl/debian/changelog (original)
+++ trunk/libcgi-pm-perl/debian/changelog Tue Jan 25 22:09:17 2011
@@ -1,3 +1,9 @@
+libcgi-pm-perl (3.52-1) UNRELEASED; urgency=low
+
+ * New upstream release
+
+ -- Nicholas Bamber <nicholas at periapt.co.uk> Tue, 25 Jan 2011 22:09:44 +0000
+
libcgi-pm-perl (3.51-1) unstable; urgency=low
[ Niko Tyni ]
Modified: trunk/libcgi-pm-perl/lib/CGI.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-pm-perl/lib/CGI.pm?rev=67868&op=diff
==============================================================================
--- trunk/libcgi-pm-perl/lib/CGI.pm (original)
+++ trunk/libcgi-pm-perl/lib/CGI.pm Tue Jan 25 22:09:17 2011
@@ -20,7 +20,7 @@
# The revision is no longer being updated since moving to git.
$CGI::revision = '$Id: CGI.pm,v 1.266 2009/07/30 16:32:34 lstein Exp $';
-$CGI::VERSION='3.51';
+$CGI::VERSION='3.52';
# HARD-CODED LOCATION FOR FILE UPLOAD TEMPORARY FILES.
# UNCOMMENT THIS ONLY IF YOU KNOW WHAT YOU'RE DOING.
@@ -5293,17 +5293,14 @@
P3P: policyref="/w3c/p3p.xml" cp="CAO DSP LAW CURa"
-Note that if a header value contains a carriage return, a leading space will be
-added to each new line that doesn't already have one as specified by RFC2616
-section 4.2. For example:
-
- print header( -ingredients => "ham\neggs\nbacon" );
-
-will generate
-
- Ingredients: ham
- eggs
- bacon
+CGI.pm will accept valid multi-line headers when each line is separated with a
+CRLF value ("\r\n" on most platforms) followed by at least one space. For example:
+
+ print header( -ingredients => "ham\r\n\seggs\r\n\sbacon" );
+
+Invalid multi-line header input will trigger in an exception. When multi-line headers
+are received, CGI.pm will always output them back as a single line, according to the
+folding rules of RFC 2616: the newlines will be removed, while the white space remains.
=head2 GENERATING A REDIRECTION HEADER
Modified: trunk/libcgi-pm-perl/t/cookie.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcgi-pm-perl/t/cookie.t?rev=67868&op=diff
==============================================================================
--- trunk/libcgi-pm-perl/t/cookie.t (original)
+++ trunk/libcgi-pm-perl/t/cookie.t Tue Jan 25 22:09:17 2011
@@ -50,8 +50,8 @@
is_deeply(\@array, [], " parse('') returns an empty array in list context (undocumented)");
is_deeply($scalar, {}, " parse('') returns an empty hashref in scalar context (undocumented)");
- my @array = CGI::Cookie->parse(undef);
- my $scalar = CGI::Cookie->parse(undef);
+ @array = CGI::Cookie->parse(undef);
+ $scalar = CGI::Cookie->parse(undef);
is_deeply(\@array, [], " parse(undef) returns an empty array in list context (undocumented)");
is_deeply($scalar, {}, " parse(undef) returns an empty hashref in scalar context (undocumented)");
}
@@ -356,7 +356,7 @@
is $cookie->expires, 'Thu, 01-Jan-1970 00:01:40 GMT';
is $cookie->max_age => undef, 'max-age is undefined when setting expires';
- my $cookie = CGI::Cookie->new( -name=>'a', 'value'=>'b' );
+ $cookie = CGI::Cookie->new( -name=>'a', 'value'=>'b' );
$cookie->max_age( '+4d' );
is $cookie->expires, undef, 'expires is undef when setting max_age';
More information about the Pkg-perl-cvs-commits
mailing list