httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kees Hoekzema" <k...@tweakers.net>
Subject [users@httpd] Apache 2.x collapsing multiple slashes in PATH_INFO
Date Mon, 18 Sep 2006 15:25:54 GMT
Hello list,

At this moment we are using Apache 1.3.x for our webservices. We are in the
process of testing apache 2.x, but it isnt working correctly for our
purposes.

The case being:
Php or cgi script that dumps the $_SERVER variable or the printenv cgi-test
program

Apache 1.3.x:
GET /cgi-bin/printenv/1/////bla?limit=1 HTTP/1.0
PATH_INFO would than look like: /1/////bla

Apache 2.x
GET /cgi-bin/printenv/1/////bla?limit=1 HTTP/1.0
PATH_INFO will than be: /1/bla

Now our scripts use PATH_INFO to get variables, instead of using ? And & we
do this by path_info. We have multiple variables in a path_info, and they
have a fixed position, so you can get them with exploding the path_info
using '/'. This obviously wont work anymore in apache 2.x since the path
info has changed.

Why has it changed? And is there a directive to change it back to the
orinigal path_info?
Or do we have to include the following code in all our (php) scripts so we
get the 'old' path_info back?

 $_SERVER['PATH_INFO'] = substr($_SERVER['PHP_SELF'],
strlen($_SERVER['SCRIPT_NAME']))

-kees


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message