>Number: 3392 >Category: mod_cgi >Synopsis: putting leading spaces after "?" in Query string places QS >values in other ENV variables >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu Nov 12 11:50:01 PST 1998 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.1 >Environment: BSDI 3.1 >Description: NOTE, I am not reporting a problem with a non-supported cgi-script. There seems to be a problem with embedding leading spaces after the initial "?" or after any "&" in QUERY_STRING input.
If you still have access to the "test-cgi" script from the "cgi-pack" or if you hae a simple cgi environment variable displayer do the following visit the script http://www.yourplace.com/test-cgi it works fine. Append to it "?a=b" or "?a=b&c=d" it will work fas expected. If you instead append, "? a=b" or "?a=b& c=d", that part that begins with the whitespace is shoved into the SERVER_PROTOCOL variable [on my system at least). I have not had time to look at mod_cgi or whatever other modules might handle the splitting up of the environment but this would not seem to be correct behaviour >How-To-Repeat: See above >Fix: not at this time >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. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]