]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix get_script_urlpath() when index is used as DirectoryIndex
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 10 Dec 2005 07:39:12 +0000 (08:39 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 10 Dec 2005 07:39:12 +0000 (08:39 +0100)
functions.php

index 639ba3215f369d9badaa53884be4d20f24a22100..799ee6c0a7e1b9185937a92d522855a18521734d 100644 (file)
        }
 
        function get_script_urlpath() {
-               $request_uri = $_SERVER["REQUEST_URI"];
-               return preg_replace('/\/[^\/]+$/', "", $request_uri);
+               return preg_replace('/\/[^\/]*$/', "", $_SERVER["REQUEST_URI"]);
        }
 
        function get_login_redirect() {