You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Jeffrey Baker <jw...@tamu.edu> on 1998/05/24 19:53:03 UTC
os-windows/2274: PATH_INFO environment variable behaves differently between Win32 and Unix
>Number: 2274
>Category: os-windows
>Synopsis: PATH_INFO environment variable behaves differently between Win32 and Unix
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Sun May 24 11:00:01 PDT 1998
>Last-Modified:
>Originator: jwb@tamu.edu
>Organization:
apache
>Release: 1.3b6
>Environment:
Windows NT 4.0 SP3, MSVC++ 5.0 SP3
>Description:
The PATH_INFO environment variable is broken on Win32 systems. If a CGI script is called with http://hostname/script.cgi/pathinfo/, the trailing slash is stripped from the PATH_INFO environment variable. If the PATH_INFO contains a double slash, such as http://hostname/script.cgi/path//info, the double slash will be stripped. These slashes are not stripped on Unix systems, and they shouldn't be.
>How-To-Repeat:
Try this cgi script on a Win32 Apache:
#!perl.exe -w
print "Content-type: text/plain\n\n";
print $ENV{'PATH_INFO'};
>Fix:
I'm guessing that there is some kind of slash translation going on with Win32 Apache, but I haven't been able to nail it down in the source. Will let you know if I find it.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED. This is not done]
[automatically because of the potential for mail loops. ]