Clear session before setup

Fixes https://github.com/owncloud/core/issues/11861
This commit is contained in:
Lukas Reschke 2014-10-31 11:21:00 +01:00
parent a9b41cbf54
commit d30fd23544
1 changed files with 2 additions and 1 deletions

View File

@ -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();