summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-07-07 12:14:39 +0200
committerMorris Jobke <hey@morrisjobke.de>2016-07-07 12:14:39 +0200
commite3b509220b5e90646b54490fa081fa53880089e5 (patch)
tree9396f6b4f0e1fd944f8c5f9560cb08798302caf4 /lib/base.php
parentba16fd0d337fa26114f55086198979d147a298c1 (diff)
downloadnextcloud-server-e3b509220b5e90646b54490fa081fa53880089e5.tar.gz
nextcloud-server-e3b509220b5e90646b54490fa081fa53880089e5.zip
Revert "Bypass upgrade page when occ controller is requested"
This reverts commit 89e581acf8d30e11a27f1d23560d54306615ae7e.
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php18
1 files changed, 3 insertions, 15 deletions
diff --git a/lib/base.php b/lib/base.php
index 78f42dc0dbd..dde8e38218a 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -833,14 +833,10 @@ class OC {
}
$request = \OC::$server->getRequest();
- // Check if requested URL matches 'index.php/occ'
- $isOccControllerRequested = preg_match('|/index\.php$|', $request->getScriptName()) === 1
- && strpos($request->getPathInfo(), '/occ/') === 0;
-
$requestPath = $request->getRawPathInfo();
if (substr($requestPath, -3) !== '.js') { // we need these files during the upgrade
self::checkMaintenanceMode($request);
- $needUpgrade = self::checkUpgrade(!$isOccControllerRequested);
+ self::checkUpgrade();
}
// emergency app disabling
@@ -858,16 +854,8 @@ class OC {
exit();
}
- try {
- // Always load authentication apps
- OC_App::loadApps(['authentication']);
- } catch (\OC\NeedsUpdateException $e) {
- if ($isOccControllerRequested && $needUpgrade){
- OC::$server->getRouter()->match(\OC::$server->getRequest()->getRawPathInfo());
- return;
- }
- throw $e;
- }
+ // Always load authentication apps
+ OC_App::loadApps(['authentication']);
// Load minimum set of apps
if (!self::checkUpgrade(false)