Branch 'kolab-syncroton-2.2' - lib/kolab_sync_data_contacts.php
Aleksander Machniak
machniak at kolabsys.com
Mon Aug 18 10:00:43 CEST 2014
lib/kolab_sync_data_contacts.php | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit b278c286a8c0a310461a1ca11578aaee70cf57bd
Author: Aleksander Machniak <alec at alec.pl>
Date: Mon Aug 18 09:59:16 2014 +0200
Add workaround for invalid data in contact email address (Android/HTCOneX) (#3287)
diff --git a/lib/kolab_sync_data_contacts.php b/lib/kolab_sync_data_contacts.php
index 02a77bc..b4200ba 100644
--- a/lib/kolab_sync_data_contacts.php
+++ b/lib/kolab_sync_data_contacts.php
@@ -247,6 +247,9 @@ class kolab_sync_data_contacts extends kolab_sync_data
$value = trim($matches[2]);
}
+ // sanitize email address, it can contain broken (non-unicode) characters (#3287)
+ $value = rcube_charset::clean($value);
+
// try to find address type, at least we can do this if
// address wasn't changed
$type = '';
More information about the commits
mailing list