From 7270bb9f57b33ddd6036e491ab8dd46fd233e8c1 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 27 Jun 2018 12:17:32 +0200 Subject: [PATCH] Use proper methods for Nextcloud 14 Signed-off-by: Morris Jobke --- lib/appwhitelist.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } }