From 0bc8f464fdb4710fd20fd29f766c2f346905c5a3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 22 Jun 2017 19:19:06 +0300 Subject: fix previous to not break search --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 217876e..8ec19cc 100644 --- a/index.php +++ b/index.php @@ -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; } -- cgit v1.2.3