fix get_script_urlpath() when index is used as DirectoryIndex
This commit is contained in:
parent
b1c39fcc59
commit
87a79fa411
|
@ -737,8 +737,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_script_urlpath() {
|
function get_script_urlpath() {
|
||||||
$request_uri = $_SERVER["REQUEST_URI"];
|
return preg_replace('/\/[^\/]*$/', "", $_SERVER["REQUEST_URI"]);
|
||||||
return preg_replace('/\/[^\/]+$/', "", $request_uri);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_login_redirect() {
|
function get_login_redirect() {
|
||||||
|
|
Loading…
Reference in New Issue