From 2f98f642415a041fa0c9820cda022f18c781a9e6 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 18 Dec 2015 15:51:03 +0100 Subject: core will handle invalid URLs and redirects properly --- lib/private/util.php | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'lib/private/util.php') diff --git a/lib/private/util.php b/lib/private/util.php index 0e029d74b7d..cf14c30c4be 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -965,20 +965,6 @@ class OC_Util { OC_Template::printGuestPage("", "login", $parameters); } - - /** - * Check if the app is enabled, redirects to home if not - * - * @param string $app - * @return void - */ - public static function checkAppEnabled($app) { - if (!OC_App::isEnabled($app)) { - header('Location: ' . \OCP\Util::linkToAbsolute('', 'index.php')); - exit(); - } - } - /** * Check if the user is logged in, redirects to home if not. With * redirect URL parameter to the request URI. -- cgit v1.2.3