mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
ab42c551fb
commit
0fbe39262f
5
main.php
5
main.php
@ -67,6 +67,11 @@ if (function_exists('mb_http_output')) {
|
|||||||
|
|
||||||
Session::start();
|
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
|
// Apache rewrite rules use this
|
||||||
if (isset($_GET['url'])) {
|
if (isset($_GET['url'])) {
|
||||||
$url = $_GET['url'];
|
$url = $_GET['url'];
|
||||||
|
Loading…
Reference in New Issue
Block a user