Merge pull request #11883 from owncloud/clear-session-for-setup

Clear session before setup
This commit is contained in:
Lukas Reschke 2014-11-06 14:39:51 +01:00
commit 5f2a083686
1 changed files with 2 additions and 1 deletions

View File

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