Less restrictions on allowed chars for search: allow / and +.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sun, 5 Sep 2010 17:10:23 +0000 (19:10 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sun, 5 Sep 2010 17:10:23 +0000 (19:10 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
include/ufbuilder.inc.php

index 690caf2..94f76c2 100644 (file)
@@ -308,7 +308,7 @@ abstract class UFBF_Text extends UFB_Field
             return $this->raise("Le champ %s est trop court (minimum {$this->minlength}).");
         } else if (strlen($this->val) > $this->maxlength) {
             return $this->raise("Le champ %s est trop long (maximum {$this->maxlength}).");
-        } else if (preg_match(":[\]\[<>{}~/§_`|%$^=+]|\*\*:u", $this->val)) {
+        } else if (preg_match(":[\]\[<>{}~§_`|%$^=]|\*\*:u", $this->val)) {
             return $this->raise('Le champ %s contient un caractère interdit rendant la recherche impossible.');
         }