]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
/check-fancy now works when installed in root dir.
authorTom Adams <tom@holizz.com>
Wed, 29 Jul 2009 23:12:18 +0000 (00:12 +0100)
committerCraig Andrews <candrews@integralblue.com>
Thu, 30 Jul 2009 01:50:21 +0000 (21:50 -0400)
index.php

index 69c0bc1b23275e53b0b9289f37529edb4135b660..a73983b5956f3545540dde949b333b4c83180ebf 100644 (file)
--- 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;