* CardDAV/Addressbook: do NOT add empty room number as further organizational unit

eg. OutlookSynchronizer adds the semicolon to the org-unit
This commit is contained in:
Ralf Becker 2020-09-11 11:47:54 +02:00
parent 6b1c71c2b2
commit f4af341919

View File

@ -451,6 +451,10 @@ class addressbook_vcal extends addressbook_bo
|| ($size >= 0 && !$noTruncate)) || ($size >= 0 && !$noTruncate))
{ {
$value = Api\Translation::convert(trim($value), $sysCharSet, $_charset); $value = Api\Translation::convert(trim($value), $sysCharSet, $_charset);
// do NOT add empty room number as further organizational unit, eg. OutlookSynchronizer add's the semicolon to the org-unit
if (empty($value) && in_array($databaseField, ['room'])) continue 2;
$values[] = $value; $values[] = $value;
if ($this->version == '2.1' && preg_match('/[^\x20-\x7F]/', $value)) if ($this->version == '2.1' && preg_match('/[^\x20-\x7F]/', $value))
{ {