closes #535, autorise le caractere / dans les numeros de tel
[platal.git] / include / profil / verif_adresses.inc.php
index c2a6896..5ad35c5 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2006 Polytechnique.org                              *
+ *  Copyright (C) 2003-2007 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -188,7 +188,7 @@ foreach($adresses as $adrid => $adr) {
       $page->trig("Le champ '$description - Code Postal' contient un caractère interdit.");
     }
   foreach ($adr['tels'] as $tel) {
-    if (strlen(strtok($tel['tel'],"<>{}@&#~\/:;?,!§*_`[]|%$^=\"")) < strlen($tel['tel']))
+    if (strlen(strtok($tel['tel'],"<>{}@&#~:;?,!§*_`[]|%$^=\"")) < strlen($tel['tel']))
       {
         $page->trig("Le champ '$description - ".$tel['tel_type']."' contient un caractère interdit.");
       }