summaryrefslogtreecommitdiffstats
path: root/web/html/index.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-10-18 09:35:23 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-10-20 18:28:17 +0200
commitf0be65875b0fbc0fcb087d5caf7f3ad0999dfcea (patch)
tree7da915f372c743c35a0a7c34c11c99425e2b2cd9 /web/html/index.php
parent361e251bb194a698cf06cdc1badfdbad489ec6dc (diff)
downloadaur-f0be65875b0fbc0fcb087d5caf7f3ad0999dfcea.tar.gz
aur-f0be65875b0fbc0fcb087d5caf7f3ad0999dfcea.tar.xz
Display an error page if a virtual path doesn't exist
Give user feedback instead of bailing out with an empty HTTP response body. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/index.php')
-rw-r--r--web/html/index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/html/index.php b/web/html/index.php
index 6ee23bc5..422c0e53 100644
--- a/web/html/index.php
+++ b/web/html/index.php
@@ -102,5 +102,9 @@ if (isset($tokens[1]) && '/' . $tokens[1] == get_pkg_route()) {
header("Content-Type: image/png");
include "./$path";
break;
+ default:
+ header("HTTP/1.0 404 Not Found");
+ include "./404.php";
+ break;
}
}