From: Andrew Dolgov Date: Sat, 10 Dec 2005 07:39:12 +0000 (+0100) Subject: fix get_script_urlpath() when index is used as DirectoryIndex X-Git-Tag: schema_freeze_for_1.1.1~79 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=87a79fa411f774970254f30e5f3a9f1675a18215;p=tt-rss.git fix get_script_urlpath() when index is used as DirectoryIndex --- diff --git a/functions.php b/functions.php index 639ba321..799ee6c0 100644 --- a/functions.php +++ b/functions.php @@ -737,8 +737,7 @@ } function get_script_urlpath() { - $request_uri = $_SERVER["REQUEST_URI"]; - return preg_replace('/\/[^\/]+$/', "", $request_uri); + return preg_replace('/\/[^\/]*$/', "", $_SERVER["REQUEST_URI"]); } function get_login_redirect() {