enhanced filtering

This commit is contained in:
Roland Gruber 2015-12-08 16:46:08 +00:00
parent 146196a441
commit 18bdb2a044
1 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@ class nisMailAlias extends baseModule {
// load list with all mail addresses
$count = sizeof($options);
for ($i = 0; $i < $count; $i++) {
if (!get_preg($options[$i], $regex) || (($filter != '') && (strpos($options[$i], $filter) === false))) {
if (!get_preg($options[$i], $regex) || (!empty($filter) && !preg_match('/' . str_replace('*', '.*', $filter) . '/ui', $options[$i]))) {
unset($options[$i]);
}
}