From: Tom Adams Date: Wed, 29 Jul 2009 23:12:18 +0000 (+0100) Subject: /check-fancy now works when installed in root dir. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=63e8f15448ac2cfb5217ddd96bb95821b6f106c5;p=quix0rs-gnu-social.git /check-fancy now works when installed in root dir. --- diff --git a/index.php b/index.php index 69c0bc1b23..a73983b595 100644 --- a/index.php +++ b/index.php @@ -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;