diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-12-18 15:51:03 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-12-18 15:51:03 +0100 |
commit | 2f98f642415a041fa0c9820cda022f18c781a9e6 (patch) | |
tree | c2dd246298e4b272a3e4707a1440839aaba41dcc /lib | |
parent | a743047e8228fb4973d99e0101dec5e6c39f81b9 (diff) | |
download | nextcloud-server-2f98f642415a041fa0c9820cda022f18c781a9e6.tar.gz nextcloud-server-2f98f642415a041fa0c9820cda022f18c781a9e6.zip |
core will handle invalid URLs and redirects properly
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/util.php | 14 | ||||
-rw-r--r-- | lib/public/app.php | 2 |
2 files changed, 1 insertions, 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 ); } /** |