From: Georg Ehrke Date: Wed, 25 Apr 2012 08:17:20 +0000 (+0200) Subject: add a proper 404 X-Git-Tag: v4.0.0beta~168^2~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=476043ecb97ebf4f1a56985194c2b74b9473e276;p=nextcloud-server.git add a proper 404 --- 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; } }