perl/perl-5.8.8-bz188441.patch
jvdias 70f1700749 fix for bug bz188441: url(-relative=>1) must use $request_uri instead of
$script_name if $rewrite_in_use, as does url(-absolute=>1)
2006-04-12 23:22:08 +00:00

12 lines
350 B
Diff

--- perl-5.8.8/lib/CGI.pm.bz188441 2006-01-08 11:40:30.000000000 -0500
+++ perl-5.8.8/lib/CGI.pm 2006-04-12 18:49:26.000000000 -0400
@@ -2650,7 +2650,7 @@
return $url if $base;
$url .= $uri;
} elsif ($relative) {
- ($url) = $script_name =~ m!([^/]+)$!;
+ ($url) = $uri =~ m!([^/]+)$!;
} elsif ($absolute) {
$url = $uri;
}