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 -------------- lib/public/app.php | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) 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. diff --git a/lib/public/app.php b/lib/public/app.php index cc414842628..c75a69f0c3d 100644 --- a/lib/public/app.php +++ b/lib/public/app.php @@ -136,9 +136,9 @@ class App { * @param string $app * @return void * @since 4.0.0 + * @deprecated 9.0.0 ownCloud core will handle disabled apps and redirects to valid URLs */ public static function checkAppEnabled( $app ) { - \OC_Util::checkAppEnabled( $app ); } /** -- cgit v1.2.3