From 87a79fa411f774970254f30e5f3a9f1675a18215 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 10 Dec 2005 08:39:12 +0100 Subject: fix get_script_urlpath() when index is used as DirectoryIndex --- functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 639ba3215..799ee6c0a 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() { -- cgit v1.2.3