Commit 58149d60 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #619 in ZP/z-push from...

Merge pull request #619 in ZP/z-push from bugfix/ZP-1315-carddav-backend-email-should-only to develop

* commit '2a27aa60':
  ZP-1315 Carddav backend email should only. Released under the Affero GNU General Public License (AGPL) version 3.
parents e516e69c 2a27aa60
......@@ -1286,6 +1286,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