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 <ro...@imdb.com> on 1997/01/13 14:33:28 UTC
[FAQ]? "PATH_INFO variable not set when using serverside includes" on Solaris 2.xSolaris (fwd)
---------- Forwarded message ----------
Date: Mon Jan 13 3:12:22 1997
From: gilfrid@offworld.co.uk
To: apache-bugs%apache.org@organic.com
Subject: [BUG]: "PATH_INFO variable not set when using serverside includes" on Solaris 2.xSolaris
Submitter: gilfrid@offworld.co.uk
Operating system: Solaris 2.xSolaris, version: 2.5
Version of Apache Used: 1.2b2
Extra Modules used: mod_perl
URL exhibiting problem:
Symptoms:
--
when using a virtual include to kick of
a script of the form;
<!--include virtual="/script/script-name" -->
the PATH_INFO CGI environment var is not being
set. This has had a value in previous releases.
This prevents our CGI parsing mechanisim from
working.
--
Backtrace:
--
--
Re: [PATCH] "PATH_INFO variable not set when using serverside includes" on Solaris 2.xSolaris (fwd)
Posted by "Jason A. Dour" <ja...@bcc.louisville.edu>.
-----BEGIN PGP SIGNED MESSAGE-----
On Wed, 15 Jan 1997, Rob Hartill wrote:
> +1
+1 as well. Uofl will be very happy now. 8)
jason
# Jason A. Dour <ja...@bcc.louisville.edu> 1101
# Programmer Analyst II; Department of Radiation Oncology; Univ. of Lou.
# Finger for URLs, PGP public key, geek code, PJ Harvey info, et cetera.
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
iQCVAwUBMt1Gypo1JaC71RLxAQFBOgQAoOXN109Rq6PFQbg27b0wIKFuEWDM18J8
Nm1EPaYYL2pCvL5UMps369Jyh2BfKXTcs1tukvezYranWF8m3IpvhhozCfaGY8V1
76YqFEQEqQ8kc3+LSv5Glsm83MljkFLYLEN+jraj3epljD1oPAvqL5ZC0LLWCKNB
vZdAjFKROWU=
=w3a2
-----END PGP SIGNATURE-----
[PATCH] "PATH_INFO variable not set when using serverside includes" on Solaris 2.xSolaris (fwd)
Posted by Rob Hartill <ro...@imdb.com>.
+1
On Mon, 13 Jan 1997, Alexei Kosut wrote:
> Awright already, here's a patch:
>
Index: util_script.c
===================================================================
RCS file: /export/home/cvs/apache/src/util_script.c,v
retrieving revision 1.38
diff -c -r1.38 util_script.c
*** util_script.c 1997/01/10 09:34:44 1.38
--- util_script.c 1997/01/14 05:47:21
***************
*** 243,249 ****
* come with the script URI in the include command. Ugh.
*/
! if (!r->path_info || !*r->path_info || !strcmp (r->protocol, "INCLUDED")) {
table_set (e, "SCRIPT_NAME", r->uri);
} else {
int path_info_start = find_path_info (r->uri, r->path_info);
--- 243,253 ----
* come with the script URI in the include command. Ugh.
*/
! if (!strcmp (r->protocol, "INCLUDED")) {
! table_set (e, "SCRIPT_NAME", r->uri);
! if (r->path_info && *r->path_info)
! table_set (e, "PATH_INFO", r->path_info);
! } else if (!r->path_info || !*r->path_info) {
table_set (e, "SCRIPT_NAME", r->uri);
} else {
int path_info_start = find_path_info (r->uri, r->path_info);
Re: [FAQ]? "PATH_INFO variable not set when using serverside includes" on Solaris 2.xSolaris (fwd)
Posted by Alexei Kosut <ak...@nueva.pvt.k12.ca.us>.
On Mon, 13 Jan 1997, Rob Hartill forwarded us a nice message that he
didn't write, goddamnit!:
> when using a virtual include to kick of
> a script of the form;
>
> <!--include virtual="/script/script-name" -->
>
> the PATH_INFO CGI environment var is not being
> set. This has had a value in previous releases.
> This prevents our CGI parsing mechanisim from
> working.
Awright already, here's a patch:
Index: util_script.c
===================================================================
RCS file: /export/home/cvs/apache/src/util_script.c,v
retrieving revision 1.38
diff -c -r1.38 util_script.c
*** util_script.c 1997/01/10 09:34:44 1.38
--- util_script.c 1997/01/14 05:47:21
***************
*** 243,249 ****
* come with the script URI in the include command. Ugh.
*/
! if (!r->path_info || !*r->path_info || !strcmp (r->protocol, "INCLUDED")) {
table_set (e, "SCRIPT_NAME", r->uri);
} else {
int path_info_start = find_path_info (r->uri, r->path_info);
--- 243,253 ----
* come with the script URI in the include command. Ugh.
*/
! if (!strcmp (r->protocol, "INCLUDED")) {
! table_set (e, "SCRIPT_NAME", r->uri);
! if (r->path_info && *r->path_info)
! table_set (e, "PATH_INFO", r->path_info);
! } else if (!r->path_info || !*r->path_info) {
table_set (e, "SCRIPT_NAME", r->uri);
} else {
int path_info_start = find_path_info (r->uri, r->path_info);
--
________________________________________________________________________
Alexei Kosut <ak...@nueva.pvt.k12.ca.us> The Apache HTTP Server
URL: http://www.nueva.pvt.k12.ca.us/~akosut/ http://www.apache.org/