From: Stéphane Jacob Date: Mon, 19 Sep 2011 21:52:44 +0000 (+0200) Subject: Fixes check for text into brackets in payment text. X-Git-Tag: xorg/1.1.4~159 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=857bab90293fb94e6fe526a60e306c8243be76a0;p=platal.git Fixes check for text into brackets in payment text. Signed-off-by: Stéphane Jacob --- diff --git a/include/validations/paiements.inc.php b/include/validations/paiements.inc.php index 2ec3a98..0214520 100644 --- a/include/validations/paiements.inc.php +++ b/include/validations/paiements.inc.php @@ -89,7 +89,7 @@ Si le télépaiement n'est pas lié à un groupe ou supérieur à 51 euros, lais public function accept() { // no text [AI JMIAJM IJA MIJ] - if (preg_match('/\[[-\'"A-Z ]+\]/', $this->msg_reponse)) { + if (preg_match('/\[[-\'"a-zA-Z ]+\]/', replace_accent($this->msg_reponse))) { $this->trigError("La demande de paiement n'est pas valide. Merci de compléter le texte avant de la soumettre"); return false; }