Permalink
Browse files

fixed dangling ? mark

  • Loading branch information...
1 parent 159724a commit 6d4a66fe2c438237913597af43a760ec31c2facc lstein committed Dec 5, 2005
Showing with 7 additions and 4 deletions.
  1. +4 −4 CGI.pm
  2. +3 −0 Changes
View
8 CGI.pm
@@ -18,8 +18,8 @@ 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.192 2005-12-04 16:44:03 lstein Exp $';
-$CGI::VERSION='3.12';
+$CGI::revision = '$Id: CGI.pm,v 1.193 2005-12-05 13:52:24 lstein Exp $';
+$CGI::VERSION='3.13';
# HARD-CODED LOCATION FOR FILE UPLOAD TEMPORARY FILES.
# UNCOMMENT THIS ONLY IF YOU KNOW WHAT YOU'RE DOING.
@@ -2655,8 +2655,8 @@ sub url {
$url = $uri;
}
- $url .= $path if $path_info and defined $path;
- $url .= "?$query_str" if $query and defined $query_str;
+ $url .= $path if $path_info and defined $path;
+ $url .= "?$query_str" if $query and $query_str ne '';
$url =~ s/([^a-zA-Z0-9_.%;&?\/\\:+=~-])/sprintf("%%%02X",ord($1))/eg;
return $url;
}
View
@@ -1,3 +1,6 @@
+ Version 3.13
+ 1. Removed extraneous empty "?" from end of self_url().
+
Version 3.12
1. Fixed virtual_port so that it works properly with https protocol.
2. Fixed documentation for upload_hook().

0 comments on commit 6d4a66f

Please sign in to comment.