diff options
author | Andrew Dolgov <[email protected]> | 2005-12-10 08:39:12 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-12-10 08:39:12 +0100 |
commit | 87a79fa411f774970254f30e5f3a9f1675a18215 (patch) | |
tree | 8289126b053ec27d59d90ea2de94aa02412a3e02 | |
parent | b1c39fcc59a7ce8ed0ed635e1f904591ad681a38 (diff) |
fix get_script_urlpath() when index is used as DirectoryIndex
-rw-r--r-- | functions.php | 3 |
1 files changed, 1 insertions, 2 deletions
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() { |