Commit 1bae3159 authored by Sebastian Kummer's avatar Sebastian Kummer

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

Merge pull request #674 in ZP/z-push from bugfix/ZP-1383-carddav-last-character-of-note-trimmed to develop

* commit '5be4d255':
  ZP-1383 Fix carddav last character of note trimmed. Released under the Affero GNU General Public License (AGPL) version 3.
parents 1c52acb0 5be4d255
...@@ -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