[Tickets #11759] Re: Don't use $_SERVER["REDIRECT_URL"]
bugs at horde.org
bugs at horde.org
Mon Nov 26 21:10:02 UTC 2012
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/11759
------------------------------------------------------------------------------
Ticket | 11759
Updated By | manuelma at aol.com
Summary | Don't use $_SERVER["REDIRECT_URL"]
Queue | Horde Framework Packages
Version | Git master
Type | Bug
State | Unconfirmed
Priority | 1. Low
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
manuelma at aol.com (2012-11-26 21:10) wrote:
> Relying on $_SERVER["REDIRECT_URL"] (before $_SERVER["REQUEST_URI"])
> for a valid URL causes problems when using php-fastcgi or php-fpm.
> e.g. rampage won't work in these setups.
>
> A simple test using apache 2.2 + mod_rewrite yields the following results:
> Setup:
> try again i didnt get to see the website
> * .htaccess File inside docroot with content: RewriteRule ^(.*)$
> test.php [QSA,L]
> * GET-URL: http://something/does/not/matter
>
> test.php served using mod_php:
> _SERVER["REQUEST_URI"] => "/does/not/matter"
> _SERVER["REDIRECT_URL"] => "/does/not/matter"
>
> test.php served using php-fastcgi (mod_fastcgi):
> _SERVER["REQUEST_URI"] => "/does/not/matter"
> _SERVER["REDIRECT_URL"] => "/test.php"
>
> test.php served using php-fpm (+mod_fastcgi):
> _SERVER["REQUEST_URI"] => "/does/not/matter"
> _SERVER["REDIRECT_URL"] => "/test.php"
>
> Classes using REDIRECT_URL before REQUEST_URI:
> * Horde_Core_Factory_Request
> * Horde_Controller_Request_Mock
More information about the bugs
mailing list