Fixes check for text into brackets in payment text.
authorStéphane Jacob <sj@m4x.org>
Mon, 19 Sep 2011 21:52:44 +0000 (23:52 +0200)
committerStéphane Jacob <sj@m4x.org>
Mon, 19 Sep 2011 21:57:39 +0000 (23:57 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
include/validations/paiements.inc.php

index 2ec3a98..0214520 100644 (file)
@@ -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;
         }