summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/index.php b/index.php
index e33fbd0..217876e 100644
--- a/index.php
+++ b/index.php
@@ -3,6 +3,11 @@
$owner = SQLite3::escapeString($_SERVER["PHP_AUTH_USER"]);
+ if (basename($_SERVER['REQUEST_URI']) != 'index.php') {
+ header('Location: index.php');
+ exit;
+ }
+
if (!$owner) {
header($_SERVER["SERVER_PROTOCOL"]." 401 Unauthorized");
echo "Unauthorized";