mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
e5f3982058
commit
f96dceecc9
5
main.php
5
main.php
@ -52,6 +52,11 @@ Session::start();
|
|||||||
// Apache rewrite rules use this
|
// Apache rewrite rules use this
|
||||||
if (isset($_GET['url'])) {
|
if (isset($_GET['url'])) {
|
||||||
$url = $_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
|
// Lighttpd uses this
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user