Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-07-07 13:07:35 +0300
committerMorris Jobke <hey@morrisjobke.de>2016-07-07 13:07:35 +0300
commit4782b9234724297cb5c08da2f055060d67c0b51c (patch)
tree1360554beefb033445f8437e4b0716ce3aa39466 /lib
parent06964b32f3fe05977b44b1e757c6e8c70923f763 (diff)
Revert "Bypass upgrade page when occ controller is requested (#25363)"
This reverts commit 445a76bb1b0249a642a9a3f2e400c1221be7993f.
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php18
1 files changed, 3 insertions, 15 deletions
diff --git a/lib/base.php b/lib/base.php
index df1fa61b740..def9d64b4ae 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -932,14 +932,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
@@ -957,16 +953,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)