Re: Spam des auteurs de "petites annonces"

Posté par fabienst le 16/2/2008 20:33:58
J'ai bien la fonction checkEmail dans functions.php

function checkEmail($email,$antispam = false)

{

    if (!$email || !preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i",$email)){

        return false;

    }

    if ($antispam) {

        $email = str_replace("@", " at ", $email);

        $email = str_replace(".", " dot ", $email);

    }

	return $email;

}

Sinon,je viens de commenter les lignes indiquées...

Cette contribution était de : http://www.aquaportail.com/newbb/viewtopic.php?forum=25&topic_id=1830&post_id=21383