summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-12-10 08:39:12 +0100
committerAndrew Dolgov <[email protected]>2005-12-10 08:39:12 +0100
commit87a79fa411f774970254f30e5f3a9f1675a18215 (patch)
tree8289126b053ec27d59d90ea2de94aa02412a3e02 /functions.php
parentb1c39fcc59a7ce8ed0ed635e1f904591ad681a38 (diff)
fix get_script_urlpath() when index is used as DirectoryIndex
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php3
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() {