[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#242543: More information



On Fri, 3 Sep 2004, Carl Johnstone wrote:

>
> I've managed to track down why QUERY_STRING works and PATH_INFO doesn't.
>
> In src/modules/standard/mod_include.c around line 2181 mod_include fixes up
> the QUERY_STRING. If I add similar code to fixup PATH_INFO ie:
>
>   if (r->path_info) {
>        ap_table_setn(r->subprocess_env, "PATH_INFO", r->path_info);
>   }
>
>
> Then it fixes my problem with PATH_INFO not being set correctly.
>
> I think what's happening is that mod_include is setting up the subrequest
> using the values from the parent (main?) request. Then code has been
> specifically added to correct the QUERY_STRING based on the subrequest, but
> not the PATH_INFO.
>
> If I setup a mod_perl that looks up a URI and then runs the subrequest, it
> behaves as I expect with the QUERY_STRING and PATH_INFO set according to the
> subrequest.
>
> Carl

Can you give us the patch directly since you have it working?

Thanks
Fabio

-- 
<user> fajita: step one
<fajita> Whatever the problem, step one is always to look in the error log.
<user> fajita: step two
<fajita> When in danger or in doubt, step two is to scream and shout.



Reply to: