Remove empty brackets, slashes and spaces from contact search name

pull/213/head
Thomas Bruederli 10 years ago
parent 1299c6a231
commit 6a0a4a3a52

@ -605,7 +605,8 @@ abstract class rcube_addressbook
} }
$result = preg_replace('/\s+/', ' ', $result); $result = preg_replace('/\s+/', ' ', $result);
$result = trim($result); $result = preg_replace('/\s*(<>|\(\)|\[\])/', '', $result);
$result = trim($result, '/ ');
return $result; return $result;
} }

Loading…
Cancel
Save