From: x2001corpet Date: Thu, 25 Jan 2007 23:34:51 +0000 (+0000) Subject: closes #535, autorise le caractere / dans les numeros de tel X-Git-Tag: xorg/0.9.13~75 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=17d6ca08e9f5e7bbad291d5fabfb2bc6da957381;p=platal.git closes #535, autorise le caractere / dans les numeros de tel git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1396 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/ChangeLog b/ChangeLog index 1cb2635..597604d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -57,7 +57,7 @@ Bug/Wish: - #512: Can attach a file -FRU * Geoloc: - - #493: Fix "List map search" button -Car + - #493: Fix "List map search" button. -Car * Lists: - #588: Auto-select mail to moderate -FRU @@ -65,6 +65,7 @@ Bug/Wish: - #616: Fix encoding issues with mail to moderate -FRU * Profile: + - #535: Tel can use / to specify extension. -Car - #628: Fix edition link from user's own profile -FRU * Register: diff --git a/include/profil/verif_adresses.inc.php b/include/profil/verif_adresses.inc.php index e2ca3b0..5ad35c5 100644 --- a/include/profil/verif_adresses.inc.php +++ b/include/profil/verif_adresses.inc.php @@ -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."); }