>Number: 1507 >Category: mod_cgi >Synopsis: Differences to UNIX in SCRIPT_NAME and PATH_INFO cgi vars >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Dec 3 06:00:00 PST 1997 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3b3/WinNT >Environment: Win/NT 4.0 Service Pack 3 >Description: Using the cgi-bin scripts below, the following differences appear in the output:
Using /cgi-bin/env.sh/foo/bar/UPPER you get PATH_INFO=/foo/bar/UPPER SCRIPT_NAME=/cgi-bin/env.sh Using /cgi-bin/env.bat/foo/bar/UPPER you get PATH_INFO=/foo/bar/upper SCRIPT_NAME=/cgi-bin/env.bat/foo/bar/UPPER Problems with 1.3b3 on NT: 1. PATH_INFO is lower-case 2. SCRIPT_NAME is too long (should be /cgi-bin/env.bat) Is that intentional? It broke my cgi-bin, and I think that's true for other scripts as well. Thanks for your efforts. >How-To-Repeat: > cat env.sh #!/bin/sh echo "Content-Type: text/plain" echo set >Fix: Make environment as similar to Unix as possible >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] >type env.bat @echo Content-Type: text/plain @echo. @cd @echo. @set
