Clear session before setup
Fixes https://github.com/owncloud/core/issues/11861
This commit is contained in:
parent
a9b41cbf54
commit
d30fd23544
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue