Commit 5be4d255 authored by Bart Vullings's avatar Bart Vullings

ZP-1383 Fix carddav last character of note trimmed. Released under the Affero...

ZP-1383 Fix carddav last character of note trimmed. Released under the Affero GNU General Public License (AGPL) version 3.
parent 1c52acb0
...@@ -1285,7 +1285,7 @@ class BackendCardDAV extends BackendDiff implements ISearchProvider { ...@@ -1285,7 +1285,7 @@ class BackendCardDAV extends BackendDiff implements ISearchProvider {
$val = str_replace("\n", "\\n", $val); $val = str_replace("\n", "\\n", $val);
// Remove trailing ; // Remove trailing ;
$val = substr($val, 0, -1); $val = rtrim($val, ";");
// Clean full name from emailaddress // Clean full name from emailaddress
if (substr($k, 0, 5) == 'email') { if (substr($k, 0, 5) == 'email') {
$val = preg_replace(array('/.*</', '/>.*/'), array('', ''), $val); $val = preg_replace(array('/.*</', '/>.*/'), array('', ''), $val);
......
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