Thomas Bruederli
2014-08-18 6a0a4a3a5230e823b812b98272c5e011d07aac35
Remove empty brackets, slashes and spaces from contact search name
1 files modified
3 ■■■■ changed files
program/lib/Roundcube/rcube_addressbook.php 3 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_addressbook.php
@@ -605,7 +605,8 @@
        }
        $result = preg_replace('/\s+/', ' ', $result);
        $result = trim($result);
        $result = preg_replace('/\s*(<>|\(\)|\[\])/', '', $result);
        $result = trim($result, '/ ');
        return $result;
    }