summaryrefslogtreecommitdiff
path: root/cpan/CGI
diff options
context:
space:
mode:
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>2011-01-25 13:49:38 +0000
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>2011-01-25 13:50:19 +0000
commitf4c5852c5260194baa0a223a41c1b6681205181d (patch)
tree5957a1a58688ebb61e8d88b38fd7ab50ff01275f /cpan/CGI
parentc2ac899509f8338fa6da5832df112a00e5994c51 (diff)
downloadperl-f4c5852c5260194baa0a223a41c1b6681205181d.tar.gz
Update CGI to CPAN version 3.52
[DELTA] Version 3.52 [DOCUMENTATION] - The documentation for multi-line header handling was been updated to reflect the changes in 3.51. (Mark Stosberg, ntyni@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)
Diffstat (limited to 'cpan/CGI')
-rw-r--r--cpan/CGI/Changes11
-rw-r--r--cpan/CGI/lib/CGI.pm17
2 files changed, 18 insertions, 10 deletions
diff --git a/cpan/CGI/Changes b/cpan/CGI/Changes
index 0647ef530d..565905ef89 100644
--- a/cpan/CGI/Changes
+++ b/cpan/CGI/Changes
@@ -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@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]
diff --git a/cpan/CGI/lib/CGI.pm b/cpan/CGI/lib/CGI.pm
index d320d7f3a9..eed7e6b5ee 100644
--- a/cpan/CGI/lib/CGI.pm
+++ b/cpan/CGI/lib/CGI.pm
@@ -20,7 +20,7 @@ use Carp 'croak';
# 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 @@ In either case, the outgoing header will be formatted as:
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:
+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\neggs\nbacon" );
+ print header( -ingredients => "ham\r\n\seggs\r\n\sbacon" );
-will generate
-
- Ingredients: ham
- eggs
- bacon
+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