summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-10-31 11:21:00 +0100
committerLukas Reschke <lukas@owncloud.com>2014-10-31 11:21:00 +0100
commitd30fd2354493902524d77438eb0e4195df4883a1 (patch)
tree507b54d6842f96c947f8042c2c4e080a40267915 /lib/base.php
parenta9b41cbf54323d9b87c9aa46097cb609dcb5d038 (diff)
downloadnextcloud-server-d30fd2354493902524d77438eb0e4195df4883a1.tar.gz
nextcloud-server-d30fd2354493902524d77438eb0e4195df4883a1.zip
Clear session before setup
Fixes https://github.com/owncloud/core/issues/11861
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 58695f31849..fb35db1e2c7 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -716,7 +716,8 @@ class OC {
OC::loadAppClassPaths();
// Check if ownCloud is installed or in maintenance (update) mode
- if (!OC_Config::getValue('installed', false)) {
+ if (!\OC::$server->getConfig()->getSystemValue('installed', false)) {
+ \OC::$server->getSession()->clear();
$controller = new OC\Core\Setup\Controller(\OC::$server->getConfig());
$controller->run($_POST);
exit();