httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31214] New: - mod_include doesn't fixup PATH_INFO in environment of sub-includes
Date Tue, 14 Sep 2004 10:58:17 GMT
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: bugs@httpd.apache.org
        ReportedBy: carl.johnstone@gmgrd.co.uk


---- 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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message