From: Raphaël Barrois Date: Sun, 5 Sep 2010 17:10:23 +0000 (+0200) Subject: Less restrictions on allowed chars for search: allow / and +. X-Git-Tag: xorg/1.0.1~15^2~10 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=5a0b9531960f86b5694e66e2f4d381a935ddae44;p=platal.git Less restrictions on allowed chars for search: allow / and +. Signed-off-by: Raphaël Barrois --- diff --git a/include/ufbuilder.inc.php b/include/ufbuilder.inc.php index 690caf2..94f76c2 100644 --- a/include/ufbuilder.inc.php +++ b/include/ufbuilder.inc.php @@ -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.'); }