From 30b6c95358a73b8825addb8662e43eefb08fb5a8 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 12 Nov 2011 15:06:29 +0000 Subject: [PATCH] allow @ in filter --- lam/lib/lists.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/lib/lists.inc b/lam/lib/lists.inc index b69196a5..b69ca9fb 100644 --- a/lam/lib/lists.inc +++ b/lam/lib/lists.inc @@ -212,12 +212,12 @@ class lamList { $foundFilter = $_POST["filter" . strtolower($this->attrArray[$i])]; } if (isset($foundFilter) && ($foundFilter != '')) { - if (preg_match('/^([\p{L}\p{N} _\\*\\$\\.-])+$/iu', $foundFilter)) { // \p{L} matches any Unicode letter + if (preg_match('/^([\p{L}\p{N} _\\*\\$\\.@-])+$/iu', $foundFilter)) { // \p{L} matches any Unicode letter $filterParam .= "&filter" . $this->attrArray[$i] . '=' . $foundFilter; $LDAPFilterPart .= '(' . $this->attrArray[$i] . '=' . $foundFilter . ')'; } else { - StatusMessage('ERROR', _('Please enter a valid filter. Only letters, numbers and " _*$.-" are allowed.'), htmlspecialchars($foundFilter)); + StatusMessage('ERROR', _('Please enter a valid filter. Only letters, numbers and " _*$.@-" are allowed.'), htmlspecialchars($foundFilter)); } } }