Daily Shaarli

All links of one day in a single page.

April 9, 2017

Commentaires toujours refusés si capcha=0 · Issue #181 · pluxml/PluXml · GitHub
thumbnail

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é :

Le code corrigé, ça donne ça :

    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']))) {
        return L_NEWCOMMENT_ERR_ANTISPAM;
    }