diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-04-25 10:17:20 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-04-25 10:17:20 +0200 |
commit | 476043ecb97ebf4f1a56985194c2b74b9473e276 (patch) | |
tree | b3079a335a9f6903e78343fd735f493ae5095e30 | |
parent | 60c0827ba386524efc133f3d91dc9bfdf40d1131 (diff) | |
download | nextcloud-server-476043ecb97ebf4f1a56985194c2b74b9473e276.tar.gz nextcloud-server-476043ecb97ebf4f1a56985194c2b74b9473e276.zip |
add a proper 404
-rw-r--r-- | lib/base.php | 3 |
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; } } |