From 52584eaf879e91526bab13bf077f0b778bc1cde9 Mon Sep 17 00:00:00 2001 From: ischommer Date: Thu, 19 Nov 2009 20:36:02 +0000 Subject: [PATCH] Added additional switch for a slight variation of the URL parsing code. (from r73224) (from r92245) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@92283 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.php b/index.php index 3125f0f..d09acd7 100644 --- a/index.php +++ b/index.php @@ -26,6 +26,9 @@ $isIIS = (strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== false); if($isIIS) { if($_SERVER['REQUEST_URI'] == $_SERVER['SCRIPT_NAME']) { $url = ""; + } else if($ruLen > $snLen && substr($_SERVER['REQUEST_URI'],0,$snLen+1) == ($_SERVER['SCRIPT_NAME'] . '/')) { + $url = substr($_SERVER['REQUEST_URI'],$snLen+1); + $url = strtok($url, '?'); } else { $url = $_SERVER['REQUEST_URI']; if($url[0] == '/') $url = substr($url,1);