Changeset 4790 in spip-zone


Ignore:
Timestamp:
Aug 21, 2006, 3:44:10 AM (13 years ago)
Author:
pierre.basson@…
Message:

correction sur l'expression régulière

Location:
_plugins_branche_stable_/_spip_1_9_0_/spip-lettres
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_branche_stable_/_spip_1_9_0_/spip-lettres/inc/lettres_fonctions.php

    r3961 r4790  
    296296         **/
    297297        function lettres_verifier_validite_email($email) {
     298                if (preg_match("/(%0A|%0D|\n+|\r+)(content-type:|to:|cc:|bcc:)/i", $email))
     299                        return false;
    298300                return ereg("^[[:alnum:]]([-_.]?[[:alnum:]])*@[[:alnum:]]([-.]?[[:alnum:]])*\.([a-z]{2,4})$", $email);
    299301        }
  • _plugins_branche_stable_/_spip_1_9_0_/spip-lettres/plugin.xml

    r4196 r4790  
    22        <nom>Plugin SPIP-Lettres</nom>
    33        <auteur>[Art&eacute;go->http://www.artego.fr]</auteur>
    4         <version>1.5</version>
     4        <version>1.6</version>
    55        <etat>stable</etat>
    66        <description>Gestion de lettres d'information</description>
Note: See TracChangeset for help on using the changeset viewer.