correctif faille CSRF

This commit is contained in:
fredtempez 2019-01-05 22:36:16 +01:00
parent 995278c753
commit b56696d651

View File

@ -95,7 +95,8 @@ class page extends common {
]);
}
// Jeton incorrect
elseif($_GET['csrf'] !== $_SESSION['csrf']) {
elseif(!isset ($_GET['csrf']) AND
$_GET['csrf'] !== $_SESSION['csrf']) {
// Valeurs en sortie
$this->addOutput([
'redirect' => helper::baseUrl() . 'page/edit/' . $url[0],