add a proper 404

This commit is contained in:
Georg Ehrke 2012-04-25 10:17:20 +02:00
parent 60c0827ba3
commit 476043ecb9
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}