You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
En empaquetant la PluXml 5.5 pour Debian, j'ai découvert que, avec capcha=0 (façon de parler, mais vous comprendrez ce que je veux dire…), les commentaires étaient systématiquement refusés ('La vérification anti-spam a échoué').
Cela vient de core/lib/class.plx.motor.php:858, qui vérifie certaines informations liées au capcha, même si celui-ci est désactivé :
if(strtolower($_SERVER['REQUEST_METHOD'])!= 'post'OR !isset($_SESSION["capcha_token"]) OR !isset($_POST['capcha_token']) OR ($_SESSION["capcha_token"]!=$_POST['capcha_token'])) {
returnL_NEWCOMMENT_ERR_ANTISPAM;
}
J'ai corrigé cela en testant d'abord $this->aConf['capcha'] ; vous pourrez trouver ma correction dans http://git.ortolo.eu/pkg-pluxml.git, branche contrib/fix-mandatory-capcha, que vous pouvez récupérer ainsi :
Bon, en fait GitHub refuse les fichiers dont le nom se termine par .patch, c'est un comble tout de même… Je vous laisse faire un git pull, ça suffira je pense.
if(strtolower($_SERVER['REQUEST_METHOD'])!= 'post'OR$this->aConf['capcha'] AND (!isset($_SESSION["capcha_token"]) OR !isset($_POST['capcha_token']) OR ($_SESSION["capcha_token"]!=$_POST['capcha_token']))) {
returnL_NEWCOMMENT_ERR_ANTISPAM;
}
pluxml
changed the title
Commentaires touours refusés si capcha=0
Commentaires toujours refusés si capcha=0
May 9, 2016
Bonjour,
En empaquetant la PluXml 5.5 pour Debian, j'ai découvert que, avec
capcha=0
(façon de parler, mais vous comprendrez ce que je veux dire…), les commentaires étaient systématiquement refusés ('La vérification anti-spam a échoué').Cela vient de
core/lib/class.plx.motor.php:858
, qui vérifie certaines informations liées au capcha, même si celui-ci est désactivé :J'ai corrigé cela en testant d'abord
$this->aConf['capcha']
; vous pourrez trouver ma correction dans http://git.ortolo.eu/pkg-pluxml.git, branche contrib/fix-mandatory-capcha, que vous pouvez récupérer ainsi :Si vous préférez, voici également un patch, que vous pouvez appliquer ainsi :
The text was updated successfully, but these errors were encountered: