Permalink
Browse files

release 3.28

  • Loading branch information...
1 parent b2449a0 commit 7cd90168efd638766daf722b4582d56a8c7f7a9b lstein committed Mar 29, 2007
Showing with 4 additions and 2 deletions.
  1. +3 −2 CGI.pm
  2. +1 −0 Changes
View
5 CGI.pm
@@ -18,7 +18,7 @@ use Carp 'croak';
# The most recent version and complete docs are available at:
# http://stein.cshl.org/WWW/software/CGI/
-$CGI::revision = '$Id: CGI.pm,v 1.228 2007-03-19 15:18:52 lstein Exp $';
+$CGI::revision = '$Id: CGI.pm,v 1.229 2007-03-29 15:35:40 lstein Exp $';
$CGI::VERSION='3.28';
# HARD-CODED LOCATION FOR FILE UPLOAD TEMPORARY FILES.
@@ -2707,7 +2707,8 @@ sub url {
if ($full) {
my $protocol = $self->protocol();
$url = "$protocol://";
- my $vh = http('x_forwarded_host') || http('host');
+ my $vh = http('x_forwarded_host') || http('host') || '';
+ $vh =~ s/\:\d+$//; # some clients add the port number (incorrectly). Get rid of it.
if ($vh) {
$url .= $vh;
} else {
View
@@ -2,6 +2,7 @@
1. Applied patch from Allen Day that makes Cookie parsing RFC2109 compliant
(attribute/values can be separated by commas as well as semicolons).
2. Applied patch from Stephan Struckmann that allows script_name() to be set correctly.
+ 3. Fixed problem with url(-full) in which port number appears twice.
Version 3.27
1. Applied patch from Steve Taylor that allows checkbox_groups to be

0 comments on commit 7cd9016

Please sign in to comment.