diff options
author | Tom Adams <tom@holizz.com> | 2009-07-30 00:12:18 +0100 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-07-29 21:50:21 -0400 |
commit | 63e8f15448ac2cfb5217ddd96bb95821b6f106c5 (patch) | |
tree | 3889ef5e38fd731edda4f2d5b4a5565c09207c96 /index.php | |
parent | 605742f039752b90092594e0924c59121befc99c (diff) |
/check-fancy now works when installed in root dir.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -108,7 +108,7 @@ function checkMirror($action_obj) function main() { // quick check for fancy URL auto-detection support in installer. - if (isset($_SERVER['REDIRECT_URL']) && ((dirname($_SERVER['REQUEST_URI']) . '/check-fancy') === $_SERVER['REDIRECT_URL'])) { + if (isset($_SERVER['REDIRECT_URL']) && (preg_replace("/^\/$/","",(dirname($_SERVER['REQUEST_URI']))) . '/check-fancy') === $_SERVER['REDIRECT_URL']) { die("Fancy URL support detection succeeded. We suggest you enable this to get fancy (pretty) URLs."); } global $user, $action; |