Bug 55329 - mod_proxy_fcgi does not urldecode PATH_INFO
Summary: mod_proxy_fcgi does not urldecode PATH_INFO
Status: RESOLVED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_proxy_fcgi (show other bugs)
Version: 2.4.4
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-30 20:12 UTC by Max Lohrmann
Modified: 2015-01-23 08:56 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Max Lohrmann 2013-07-30 20:12:42 UTC
Take this url:

http://example.com/info.php/some%20url

to be some standard <?php phpinfo ?> page.

Using mod_php this will show:

_SERVER["REQUEST_URI"] = /info.php/some%20url
_SERVER["SCRIPT_NAME"] = /info.php
_SERVER["PATH_INFO"]   = /some url

Using mod_fcgid/mod_fastcgi it will show:

_SERVER["REQUEST_URI"] = /info.php/some%20url
_SERVER["SCRIPT_NAME"] = /info.php
_SERVER["PATH_INFO"]   = /some url

However using mod_proxy_fcgi it shows:

_SERVER["REQUEST_URI"] = /info.php/some%20url
_SERVER["SCRIPT_NAME"] = /info.php/some url
_SERVER["PATH_INFO"]   = /some%20url

So unlike the other modules mod_proxy_fcgi seems to not decode the URL.

(using the ProxyPassMatch rule from apache wiki)
Comment 1 Yann Ylavic 2015-01-23 08:56:34 UTC
Fixed/configurable in 2.4.11, see http://httpd.apache.org/docs/2.4/mod/mod_proxy_fcgi.html#env