From 476043ecb97ebf4f1a56985194c2b74b9473e276 Mon Sep 17 00:00:00 2001
From: Georg Ehrke <dev@georgswebsite.de>
Date: Wed, 25 Apr 2012 10:17:20 +0200
Subject: [PATCH] add a proper 404

---
 lib/base.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/base.php b/lib/base.php
index a7b7d08246..c8a99d3ac3 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;
 		}
 	}
 
-- 
GitLab