diff options
author | Andrew Dolgov <[email protected]> | 2017-06-22 19:19:06 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-06-22 19:19:06 +0300 |
commit | 0bc8f464fdb4710fd20fd29f766c2f346905c5a3 (patch) | |
tree | ebce0c7d57eb49e66c07d54ac50ff6324d5837f1 /index.php | |
parent | ed369290049fe436b6619729bf4bd029ca584159 (diff) |
fix previous to not break search
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3,7 +3,8 @@ $owner = SQLite3::escapeString($_SERVER["PHP_AUTH_USER"]); - if (basename($_SERVER['REQUEST_URI']) != 'index.php') { + + if (basename(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)) != 'index.php') { header('Location: index.php'); exit; } |