Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CGI.pm bug on IIS 6 (Windows 2003) #8393

Closed
p5pRT opened this issue Apr 6, 2006 · 7 comments
Closed

CGI.pm bug on IIS 6 (Windows 2003) #8393

p5pRT opened this issue Apr 6, 2006 · 7 comments

Comments

@p5pRT
Copy link

p5pRT commented Apr 6, 2006

Migrated from rt.perl.org#38865 (status was 'resolved')

Searchable as RT38865$

@p5pRT
Copy link
Author

p5pRT commented Apr 6, 2006

From yann.combarnous@gmail.com

Module​: CGI.PM version 3.15


OS​: windows 2003, using IIS 6


Issue​:

when executing

perl -MCGI -w -e"print CGI->new->url(-relative => 1)"

I get the error

"Use of uninitialized value in substitution (s///) at (eval 4)
line 44
Use of uninitialized value in print at -e line 1"

See http​://bugzilla.mozilla.org, bug 332555.


Was fixed by applying patch​:

Inline Patch
--- CGI-3.15.pm 2006-04-06 22:54:00.000000000 +0800
+++ CGI-3.15-fixed.pm   2006-04-06 22:54:17.812500000 +0800
@@ -2657,6 +2657,7 @@
         $url = $uri;
     }

+    $url ||= '';
     $url .= $path         if $path_info and defined $path;
     $url .= "?$query_str" if $query     and $query_str ne '';

@@ -2771,7 +2772,9 @@
    my $raw_path_info   = $ENV{PATH_INFO}   || '';
    my $uri             = $ENV{REQUEST_URI} || '';

-   if ($raw_script_name =~ m/$raw_path_info$/) {
+   if ($raw_script_name ne $raw_path_info
+     && $raw_script_name =~ m/$raw_path_info$/
+   ) {
      $raw_script_name =~ s/$raw_path_info$//;
    }

@p5pRT
Copy link
Author

p5pRT commented May 17, 2007

From guest@guest.guest.xxxxxxxx

I belive this duplicates
http​://rt.cpan.org/Public/Bug/Display.html?id=19044

@p5pRT
Copy link
Author

p5pRT commented May 17, 2007

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Jul 31, 2007

From guest@guest.guest.xxxxxxxx

Attached is cgi v 3.15 with the patch applied for iis that was
mentioned in this bug report. This download will save you trying to
manually apply the patch. I have tested this under iis 5.1 and iis 6
and it works and gets rid of the errors. If you are using bugzilla
under windows and active perl, assuming you have active perl already
installed, simply extract the files/folders from the zip file then
copy all files and folders to c​:\perl\lib (assuming active perl is
installed to your c​: drive) and answer yes to overwrite everything in
the c​:\perl\lib folder to apply this fix. Then you will no longer get
the error mentioned here that iis is raising. I am running bugzilla 3,
ActivePerl-5.8.8.820-MSWin32-x86-274739.msi, and mysql-essential-
5.0.45-win32.msi under windows xp pro, windows server 2000, and 2003
with no errors raised from iis 5 or iis 6 after applying this patch.

@p5pRT
Copy link
Author

p5pRT commented Jul 31, 2007

@p5pRT
Copy link
Author

p5pRT commented Dec 13, 2007

From jkent@ucsd.edu

This bug also occurs on apache under linux but in a more minor way​: puts
error messages into the log, see
http​://rt.cpan.org/Ticket/Display.html?id=31510

@p5pRT
Copy link
Author

p5pRT commented Apr 30, 2008

p5p@spam.wizbit.be - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant