From 515e392252d6bd93f655add6ff663bdc469c0ff5 Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Sun, 7 Dec 2008 22:25:20 +0000 Subject: [PATCH] BUGFIX: #3182 - Fix URL fixing on machines where url is case insensitive (hamish) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@67609 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- main.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.php b/main.php index 88545c462..3b48e8e81 100644 --- a/main.php +++ b/main.php @@ -82,8 +82,7 @@ if (isset($_GET['url'])) { } // Fix glitches in URL generation -if (substr($url, 0, strlen(BASE_URL)) == BASE_URL) $url = substr($url, strlen(BASE_URL)); - +if (substr(strtolower($url), 0, strlen(BASE_URL)) == strtolower(BASE_URL)) $url = substr($url, strlen(BASE_URL)); if (isset($_GET['debug_profile'])) { Profiler::init();