You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ha...@hyperreal.com> on 1995/11/16 22:18:10 UTC

SSI cgi and the query string (fwd)

No ack sent..

Forwarded message:
> From scott@wiggin.uniserve.com  Wed Nov 15 18:20:20 1995
> Date: Wed, 15 Nov 1995 18:19:58 -0800 (PST)
> From: Scott <sc...@uniserve.com>
> To: apache-bugs@mail.apache.org
> Subject: SSI cgi and the query string
> Message-ID: <Pi...@wiggin.uniserve.com>
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> 
> Okay, this technically isn't a bug...just a problem for me :)
> 
> I'm curious about why this bit of code exists in mod_include.c, 
> include_cgi()  approximately line 327:
> 
>     /* No hardwired path info or query allowed */
>   
>     if ((rr->path_info && rr->path_info[0]) || rr->args) return -1;
>     if (rr->finfo.st_mode == 0) return -1;
> 
>     /* Script gets parameters of the *document*, for back compatibility */
>   
>     rr->path_info = r->path_info; /* painful to get right; see mod_cgi.c */
>     rr->args = r->args;
> 
> Umm..why is there no query string allowed? I have a use for being able to 
> send a query string from an exec cgi (actually...many uses). I just 
> commented out the above and it works great, so why is it there? Have I 
> done a bad thing by ditching it?
> 
> 
> Cheers,
> 
> Scott Goodman
> UNIServe Online
>