From 76bfd179113c76ea9de4912f92b1e3980403096b Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Tue, 27 Sep 2011 14:23:54 +0200 Subject: [PATCH] Fixes search on ax ids. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- include/ufbuilder.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ufbuilder.inc.php b/include/ufbuilder.inc.php index 1543b15..5785ea7 100644 --- a/include/ufbuilder.inc.php +++ b/include/ufbuilder.inc.php @@ -839,9 +839,10 @@ class UFBF_SchoolIds extends UFB_Field } $value = $ufb->t($this->envfield); - $values = explode("\r\n", $value); + $values = explode("\n", $value); $ids = array(); foreach ($values as $val) { + $val = trim($val); if (preg_match('/^[0-9A-Z]{0,8}$/', $val)) { $ids[] = $val; } -- 2.1.4