diff --git a/core/module/install/install.php b/core/module/install/install.php index 8c4f0b39..cdc0e097 100644 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -50,7 +50,9 @@ class install extends common 'access' => false ]); } - // Accès autorisé + + + // Soumission du formulaire if ($this->isPost()) { $lang = $this->getInput('installLanguage'); @@ -64,6 +66,9 @@ class install extends common ]); } + // Régénère la session + session_regenerate_id(); + // Liste des langues UI disponibles if (is_dir(self::I18N_DIR)) { foreach ($this->getData(['language']) as $lang => $value) { diff --git a/core/module/user/user.php b/core/module/user/user.php index 9cef7a02..711256e2 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -324,7 +324,6 @@ class user extends common } } - // Valeurs en sortie $this->addOutput([ 'title' => $this->getData(['user', $this->getUrl(2), 'firstname']) . ' ' . $this->getData(['user', $this->getUrl(2), 'lastname']), @@ -711,6 +710,10 @@ class user extends common if ($this->getData(['config', 'connect', 'log'])) { file_put_contents(self::DATA_DIR . 'journal.log', $dataLog, FILE_APPEND); } + + // Régénère la session + session_regenerate_id(); + // Stockage des cookies if (!empty($_COOKIE['ZWII_USER_ID'])) { self::$userId = $_COOKIE['ZWII_USER_ID'];