diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-10-31 11:21:00 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-10-31 11:21:00 +0100 |
commit | d30fd2354493902524d77438eb0e4195df4883a1 (patch) | |
tree | 507b54d6842f96c947f8042c2c4e080a40267915 /lib/base.php | |
parent | a9b41cbf54323d9b87c9aa46097cb609dcb5d038 (diff) | |
download | nextcloud-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.php | 3 |
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(); |