Fixed redirection when installed in sub dir.
authorjollytoad <jollytoad>
Wed, 14 Jul 2004 07:57:06 +0000 (07:57 +0000)
committerjollytoad <jollytoad>
Wed, 14 Jul 2004 07:57:06 +0000 (07:57 +0000)
redirect.php

index 974b598c735465b1977a96e62289736e62a69513..dbfdbfb701118dd6ab494df3b20b219cf64ed30d 100644 (file)
@@ -4,7 +4,8 @@
        $url = $misc->getLastTabURL($_REQUEST['section']);
        
        if (is_string($url)) {
-               header("Location: http://{$_SERVER['HTTP_HOST']}/{$url}");
+               $dir = substr($_SERVER['REQUEST_URI'], 0, strrpos ($_SERVER['REQUEST_URI'],'/'));
+               header("Location: http://{$_SERVER['HTTP_HOST']}{$dir}/{$url}");
                exit;
        }