From: x2001corpet Date: Wed, 11 Oct 2006 22:11:16 +0000 (+0000) Subject: bug dans la verif d'adresse X-Git-Tag: xorg/0.9.11~17 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1a71cf073af48750e681ee019729de70a43553e3;p=platal.git bug dans la verif d'adresse git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.11@970 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/include/profil/verif_adresses.inc.php b/include/profil/verif_adresses.inc.php index 05d1208..09e6a46 100644 --- a/include/profil/verif_adresses.inc.php +++ b/include/profil/verif_adresses.inc.php @@ -187,9 +187,9 @@ foreach($adresses as $adrid => $adr) { { $page->trig("Le champ '$description - Code Postal' contient un caractère interdit."); } - if (strlen(strtok($adr['city'],"<>{}@~?!§*`|%$^=+")) < strlen($adr['postcode'])) + if (strlen(strtok($adr['city'],"<>{}@~?!§*`|%$^=+")) < strlen($adr['city'])) { - $page->trig("Le champ '$description - Ville' contient un caractère interdit."); + $page->trig("Le champ '$description - Ville' contient un caractère interdit."); } foreach ($adr['tels'] as $tel) { if (strlen(strtok($tel['tel'],"<>{}@&#~\/:;?,!§*_`[]|%$^=\"")) < strlen($tel['tel']))