summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
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;
}