[Tickets #11759] Don't use $_SERVER["REDIRECT_URL"]

bugs at horde.org bugs at horde.org
Mon Nov 26 20:24:59 UTC 2012


BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: http://bugs.horde.org/ticket/11759
------------------------------------------------------------------------------
  Ticket           | 11759
  Erstellt Von     | manuel-horde at mausz.at
  Zusammenfassung  | Don't use $_SERVER["REDIRECT_URL"]
  Warteschlange    | Horde Framework Packages
  Version          | Git master
  Typ              | Bug
  Status           | Unconfirmed
  Priorität        | 1. Low
  Milestone        |
  Patch            |
  Zuständige       |
------------------------------------------------------------------------------


manuel-horde at mausz.at (2012-11-26 20:24) hat geschrieben:

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:
* .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