summaryrefslogtreecommitdiff
path: root/plugins/libkolab/lib/kolab_storage_cache_contact.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-02-10 13:10:36 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-02-10 13:10:36 (GMT)
commitbc1164e943b420e52d286e03b6babd9efd67da6e (patch)
tree1736ef308ee562bb2b14479216ffec8eb7c9ba82 /plugins/libkolab/lib/kolab_storage_cache_contact.php
parent7c32605d1441172b9bf0f6346d112236590a6e02 (diff)
downloadroundcubemail-plugins-kolab-bc1164e943b420e52d286e03b6babd9efd67da6e.tar.gz
Remove non-unicode characters from sort cols
Diffstat (limited to 'plugins/libkolab/lib/kolab_storage_cache_contact.php')
-rw-r--r--plugins/libkolab/lib/kolab_storage_cache_contact.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/libkolab/lib/kolab_storage_cache_contact.php b/plugins/libkolab/lib/kolab_storage_cache_contact.php
index fde27bc..b70b37f 100644
--- a/plugins/libkolab/lib/kolab_storage_cache_contact.php
+++ b/plugins/libkolab/lib/kolab_storage_cache_contact.php
@@ -41,10 +41,10 @@ class kolab_storage_cache_contact extends kolab_storage_cache
$sql_data['type'] = $object['_type'];
// columns for sorting
- $sql_data['name'] = $object['name'] . $object['prefix'];
- $sql_data['firstname'] = $object['firstname'] . $object['middlename'] . $object['surname'];
- $sql_data['surname'] = $object['surname'] . $object['firstname'] . $object['middlename'];
- $sql_data['email'] = is_array($object['email']) ? $object['email'][0] : $object['email'];
+ $sql_data['name'] = rcube_charset::clean($object['name'] . $object['prefix']);
+ $sql_data['firstname'] = rcube_charset::clean($object['firstname'] . $object['middlename'] . $object['surname']);
+ $sql_data['surname'] = rcube_charset::clean($object['surname'] . $object['firstname'] . $object['middlename']);
+ $sql_data['email'] = rcube_charset::clean(is_array($object['email']) ? $object['email'][0] : $object['email']);
if (is_array($sql_data['email'])) {
$sql_data['email'] = $sql_data['email']['address'];