Created attachment 341312 [details] fix cups cgi issues Description of problem: Hello, There issues with CGI handling: 1. QUERY_STRING does not always get set. For example with: [1] http://localhost:631/test.cgi?file1+file2&file3 [2] http://localhost:631/test.cgi?/path/to/file1+/path/to/file2 QUERY_STRING is unset where it must be set to the whole substring following the "?". RFC#3875 (CGI/1.1 specification) section 4.1.7 states: [...] The QUERY_STRING value provides the query-string part of the Script-URI. (See section 3.3). The server MUST set this variable; if the Script-URI does not include a query component, the QUERY_STRING MUST be defined as an empty string (""). 2. Positional parameters are not always set. For example with: [2] http://localhost:631/test.cgi?/path/to/file1+/path/to/file2 positional parameters are not set where they should be: $1=/path/to/file1, $2=/path/to/file2. Attached is a unified patch (also includes the fix in STR #2816). Regards, Opher Shachar. Version-Release number of selected component (if applicable): cups-1.3.7-8 How reproducible: Always
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0210.html