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
This commit is contained in:
Andrew O'Neil 2008-12-07 22:25:20 +00:00 committed by Sam Minnee
parent bc1235be3f
commit 515e392252

View File

@ -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();