diff options
author | Andrew Dolgov <[email protected]> | 2021-03-03 11:37:58 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-03-03 11:37:58 +0300 |
commit | dbda996a7a04ce96803e045dfaf27d1c577c3f4e (patch) | |
tree | 3b30971945e65e1855f43cda5d93c15ff08585de /classes | |
parent | 1aedd223061e1e49826ce292f5a4847012169239 (diff) |
previous one was not good enough i guess
Diffstat (limited to 'classes')
-rw-r--r-- | classes/config.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/config.php b/classes/config.php index ca93bb650..e94bcabb6 100644 --- a/classes/config.php +++ b/classes/config.php @@ -284,7 +284,7 @@ class Config { $proto = self::is_server_https() ? 'https' : 'http'; $self_url_path = $proto . '://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]; - $self_url_path = preg_replace("/\w+\.php$/", "", $self_url_path); + $self_url_path = preg_replace("/\w+\.php(\?.*$)?$/", "", $self_url_path); if (substr($self_url_path, -1) === "/") { return substr($self_url_path, 0, -1); |