Commit 2a27aa60 authored by Bart Vullings's avatar Bart Vullings

ZP-1315 Carddav backend email should only. Released under the Affero GNU...

ZP-1315 Carddav backend email should only. Released under the Affero GNU General Public License (AGPL) version 3.
parent 3ccbfd83
......@@ -1273,6 +1273,10 @@ class BackendCardDAV extends BackendDiff implements ISearchProvider {
// Remove trailing ;
$val = substr($val, 0, -1);
// Clean full name from emailaddress
if (substr($k, 0, 5) == 'email') {
$val = preg_replace(array('/.*</', '/>.*/'), array('', ''), $val);
}
if (strlen($val) > 50) {
$data .= $v.":\n\t".substr(chunk_split($val, 50, "\n\t"), 0, -1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment