summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-06-22 19:19:06 +0300
committerAndrew Dolgov <[email protected]>2017-06-22 19:19:06 +0300
commit0bc8f464fdb4710fd20fd29f766c2f346905c5a3 (patch)
treeebce0c7d57eb49e66c07d54ac50ff6324d5837f1 /index.php
parented369290049fe436b6619729bf4bd029ca584159 (diff)
fix previous to not break search
Diffstat (limited to 'index.php')
-rw-r--r--index.php3
1 files changed, 2 insertions, 1 deletions
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;
}