BUGFIX: #2588 Fix issue with IIS not stripping GET variables from the URL (mackeyn)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63915 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2008-10-08 23:04:55 +00:00
parent e5f3982058
commit f96dceecc9

View File

@ -52,6 +52,11 @@ Session::start();
// Apache rewrite rules use this
if (isset($_GET['url'])) {
$url = $_GET['url'];
// IIS includes get variables in url
$i = strpos($url, '?');
if($i !== false) {
$url = substr($url, 0, $i);
}
// Lighttpd uses this
} else {