httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Covener" <cove...@gmail.com>
Subject mod_cgid doesn't pass null arguments on command line
Date Thu, 24 Jul 2008 12:01:49 GMT
Background: When a query string doesn't have key/value pairs, the
query string is tokenized on the '+' character and the values are sent
as argv to the CGI script.


It looks like a change to discard null tokens snuck in along with a
suexec patch, r87905 (look for strcmp)

http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/modules/generators/mod_cgid.c?r1=87851&r2=87905

pre-r87905:
foo.cgi?foo++bar results in 3 positional parameters "foo", "", "bar".

post-r87905:
foo.cgi?foo++bar results in 2 positional parameters "foo", "bar".

While it might be disruptive to flip it back, could it be offered as
an option?  AIUI 1.3.x behaves like the pre-r87905.

-- 
Eric Covener
covener@gmail.com

Mime
View raw message