Return-Path: Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: (qmail 13330 invoked from network); 14 Sep 2004 10:56:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Sep 2004 10:56:36 -0000 Received: (qmail 21033 invoked by uid 500); 14 Sep 2004 10:56:34 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 20944 invoked by uid 500); 14 Sep 2004 10:56:33 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: "Apache HTTPD Bugs Notification List" Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 20921 invoked by uid 99); 14 Sep 2004 10:56:33 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=NO_REAL_NAME,UPPERCASE_25_50 X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 14 Sep 2004 03:56:30 -0700 Received: (qmail 26050 invoked by uid 50); 14 Sep 2004 10:58:17 -0000 Date: 14 Sep 2004 10:58:17 -0000 Message-ID: <20040914105817.26049.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: bugs@httpd.apache.org Cc: Subject: DO NOT REPLY [Bug 31214] New: - mod_include doesn't fixup PATH_INFO in environment of sub-includes X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . 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 ---- ------------------- ---- test2.html ----- --------------------- 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