diff --git a/lib/appwhitelist.php b/lib/appwhitelist.php index 784b835a..61c1d647 100644 --- a/lib/appwhitelist.php +++ b/lib/appwhitelist.php @@ -53,11 +53,10 @@ public static function preSetup($params) { )); if (!in_array($app, $whitelist)) { - header('HTTP/1.0 403 Forbidden'); $l = \OC::$server->getL10NFactory()->get('guests'); Template::printErrorPage($l->t( 'Access to this resource is forbidden for guests.' - )); + ), '', 403); exit; } }