Permalink
Browse files

Added additional switch for a slight variation of the URL parsing cod…

…e. (from r73224)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@92245 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent ac4fe4b commit f3258df376dc533edf6b7c7dde4ab2cf42a8c16d ischommer committed Nov 19, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 index.php
View
@@ -26,6 +26,9 @@
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);

0 comments on commit f3258df

Please sign in to comment.