summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-04-25 10:17:20 +0200
committerGeorg Ehrke <dev@georgswebsite.de>2012-04-25 10:17:20 +0200
commit476043ecb97ebf4f1a56985194c2b74b9473e276 (patch)
treeb3079a335a9f6903e78343fd735f493ae5095e30
parent60c0827ba386524efc133f3d91dc9bfdf40d1131 (diff)
downloadnextcloud-server-476043ecb97ebf4f1a56985194c2b74b9473e276.tar.gz
nextcloud-server-476043ecb97ebf4f1a56985194c2b74b9473e276.zip
add a proper 404
-rw-r--r--lib/base.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index a7b7d082460..c8a99d3ac30 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -287,7 +287,8 @@ class OC{
if(file_exists(OC::$APPSROOT . '/apps/' . OC::$REQUESTEDAPP . '/' . OC::$REQUESTEDFILE)){
require_once(OC::$APPSROOT . '/apps/' . OC::$REQUESTEDAPP . '/' . OC::$REQUESTEDFILE);
}else{
- header('404 Not Found');
+ header('HTTP/1.0 404 Not Found');
+ exit;
}
}