summaryrefslogtreecommitdiffstats
path: root/lib/private/util.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-12-18 15:51:03 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-12-18 15:51:03 +0100
commit2f98f642415a041fa0c9820cda022f18c781a9e6 (patch)
treec2dd246298e4b272a3e4707a1440839aaba41dcc /lib/private/util.php
parenta743047e8228fb4973d99e0101dec5e6c39f81b9 (diff)
downloadnextcloud-server-2f98f642415a041fa0c9820cda022f18c781a9e6.tar.gz
nextcloud-server-2f98f642415a041fa0c9820cda022f18c781a9e6.zip
core will handle invalid URLs and redirects properly
Diffstat (limited to 'lib/private/util.php')
-rw-r--r--lib/private/util.php14
1 files changed, 0 insertions, 14 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.