mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-03 09:09:14 +00:00
fix get_script_urlpath() when index is used as DirectoryIndex
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user