BUGFIX: Fix URL parsing for certain IIS configurations.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@76897 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-05-14 23:14:51 +00:00
parent ab42c551fb
commit 0fbe39262f

View File

@ -67,6 +67,11 @@ if (function_exists('mb_http_output')) {
Session::start();
// IIS will sometimes generate this.
if(!empty($_SERVER['HTTP_X_ORIGINAL_URL'])) {
$_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_ORIGINAL_URL'];
}
// Apache rewrite rules use this
if (isset($_GET['url'])) {
$url = $_GET['url'];