From 5a0b9531960f86b5694e66e2f4d381a935ddae44 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Sun, 5 Sep 2010 19:10:23 +0200 Subject: [PATCH] Less restrictions on allowed chars for search: allow / and +. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- include/ufbuilder.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.'); } -- 2.1.4