r67866 - in /branches/upstream/libcgi-pm-perl/current: Changes META.yml lib/CGI.pm t/cookie.t
periapt-guest at users.alioth.debian.org
periapt-guest at users.alioth.debian.org
Tue Jan 25 22:06:12 UTC 2011
Author: periapt-guest
Date: Tue Jan 25 22:06:01 2011
New Revision: 67866
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=67866
Log:
[svn-upgrade] new version libcgi-pm-perl (3.52)
Modified:
branches/upstream/libcgi-pm-perl/current/Changes
branches/upstream/libcgi-pm-perl/current/META.yml
branches/upstream/libcgi-pm-perl/current/lib/CGI.pm
branches/upstream/libcgi-pm-perl/current/t/cookie.t
Modified: branches/upstream/libcgi-pm-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcgi-pm-perl/current/Changes?rev=67866&op=diff
==============================================================================
--- branches/upstream/libcgi-pm-perl/current/Changes (original)
+++ branches/upstream/libcgi-pm-perl/current/Changes Tue Jan 25 22:06:01 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: branches/upstream/libcgi-pm-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcgi-pm-perl/current/META.yml?rev=67866&op=diff
==============================================================================
--- branches/upstream/libcgi-pm-perl/current/META.yml (original)
+++ branches/upstream/libcgi-pm-perl/current/META.yml Tue Jan 25 22:06:01 2011
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: CGI.pm
-version: 3.51
+version: 3.52
abstract: ~
author: []
license: unknown
Modified: branches/upstream/libcgi-pm-perl/current/lib/CGI.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcgi-pm-perl/current/lib/CGI.pm?rev=67866&op=diff
==============================================================================
--- branches/upstream/libcgi-pm-perl/current/lib/CGI.pm (original)
+++ branches/upstream/libcgi-pm-perl/current/lib/CGI.pm Tue Jan 25 22:06:01 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: branches/upstream/libcgi-pm-perl/current/t/cookie.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcgi-pm-perl/current/t/cookie.t?rev=67866&op=diff
==============================================================================
--- branches/upstream/libcgi-pm-perl/current/t/cookie.t (original)
+++ branches/upstream/libcgi-pm-perl/current/t/cookie.t Tue Jan 25 22:06:01 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