httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Querna <c...@force-elite.com>
Subject Re: mod_cgid doesn't pass null arguments on command line
Date Thu, 24 Jul 2008 17:09:22 GMT
Plüm, Rüdiger, VF-Group wrote:
>  
> 
>> -----Ursprüngliche Nachricht-----
>> Von: Jeff Trawick
>> Gesendet: Donnerstag, 24. Juli 2008 15:36
>> An: dev@httpd.apache.org
>> Betreff: Re: mod_cgid doesn't pass null arguments on command line
>>
>> On Thu, Jul 24, 2008 at 8:01 AM, Eric Covener 
>> <covener@gmail.com> wrote:
>>
>>
>> 	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)
>>
>>
>> mod_cgi works fine though (tiny caveat: I tried this with cgi 
>> vs. cgid on a 2061 tree I had handy).  The discrepancy 
>> between arg handling in cgi/cgid is the major concern as far 
>> as user impact.
> 
> I don't get why there is a difference between mod_cgi and mod_cgid
> how they handle NULL arguments. Is there any specific reason why mod_cgid
> skips them?
> Whatever is the correct thing (skipping or not): Lets make mod_cgi / mod_cgid
> behave in the same way.

+1, they should have identical behaviors, and I would prefer to fix that 
in 2.2x, not just add another env var.

-Paul


Mime
View raw message