DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=31214>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31214 mod_include doesn't fixup PATH_INFO in environment of sub-includes Summary: mod_include doesn't fixup PATH_INFO in environment of sub-includes Product: Apache httpd-1.3 Version: 1.3.31 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: mod_include AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] ---- test.html ---- <!--#echo var="PATH_INFO" --> <!--#echo var="QUERY_STRING" --> ------------------- ---- test2.html ----- <!--#include virtual="test.html/path?query" --> --------------------- Requesting http://site/test.html/path?query gives me: path query Requesting http://site/test2.html gives me: (none) query They should match. From investigation, I think it's because the PATH_INFO isn't setup in the environment of the subrequest. Digging around in src/modules/standard/mod_include.c - around line 2181 QUERY_STRING is fixed up, however PATH_INFO isn't. If I add this in: if (r->path_info) { ap_table_setn(r->subprocess_env, "PATH_INFO", r->path_info); } Then it seems to then work fine for my simple test case. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
