From ef861a145049ecf063c82cc623a0022d18f99e56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=AFeul=20Rouquette?= <maieul@maieul.net> Date: Thu, 19 Dec 2019 22:13:24 +0100 Subject: [PATCH] =?UTF-8?q?c1baaee29f7b7c7dc02ed789a04c405aeb18aeae=20?= =?UTF-8?q?=C3=A9tait=20un=20peu=20trop=20fort.=20En=20effet,=20si=20jamai?= =?UTF-8?q?s=20on=20a=20un=20identification=20par=20id=5Fauteur=20sans=20a?= =?UTF-8?q?nonymisation,=20alors=20la=20variable=20PHP=20peut=20=C3=AAtre?= =?UTF-8?q?=20pertinente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/formidable.php | 6 +++++- paquet.xml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/inc/formidable.php b/inc/formidable.php index 72eda684..b5b37fab 100644 --- a/inc/formidable.php +++ b/inc/formidable.php @@ -194,7 +194,11 @@ function formidable_verifier_reponse_formulaire($id_formulaire, $choix_identific if ($id_auteur) { $where = array($where_id_auteur); } else { - $where = array($where_cookie); + if ($anonymiser) { + $where = array($where_cookie); + } else { + $where = array($where_cookie, $where_variable_php); + } } } elseif ($choix_identification == 'variable_php') { if ($variable_php_identification) { diff --git a/paquet.xml b/paquet.xml index 8bf0b31e..fe5fb7d2 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,7 +1,7 @@ <paquet prefix="formidable" categorie="communication" - version="3.47.1" + version="3.47.2" etat="stable" compatibilite="[3.0.0;3.2.*]" logo="images/formidable-64.png" -- GitLab