mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
bc1235be3f
commit
515e392252
3
main.php
3
main.php
@ -82,8 +82,7 @@ if (isset($_GET['url'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fix glitches in URL generation
|
// 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'])) {
|
if (isset($_GET['debug_profile'])) {
|
||||||
Profiler::init();
|
Profiler::init();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user