From b79e34c57ba74246a03a66045a6b792e35da1d32 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 30 Jul 2020 21:10:54 +0200 Subject: fix check for Cloud ID, missing return statements, wrong param use Signed-off-by: Arthur Schiwon --- apps/dav/lib/CardDAV/CardDavBackend.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/dav/lib') diff --git a/apps/dav/lib/CardDAV/CardDavBackend.php b/apps/dav/lib/CardDAV/CardDavBackend.php index 9d602025c7a..8c898271902 100644 --- a/apps/dav/lib/CardDAV/CardDavBackend.php +++ b/apps/dav/lib/CardDAV/CardDavBackend.php @@ -974,8 +974,9 @@ class CardDavBackend implements BackendInterface, SyncSupport { continue; } - if ($property === 'CLOUD' && preg_match('/[^a-zA-Z0-9 _.@\-\']/', $pattern) === 1) { - // There can be no chars in cloud ids which are not valid for user ids + if ($property === 'CLOUD' && preg_match('/[^a-zA-Z0-9 :_.@\/\-\']/', $pattern) === 1) { + // There can be no chars in cloud ids which are not valid for user ids plus :/ + // worst case: CA61590A-BBBC-423E-84AF-E6DF01455A53@https://my.nxt/srv/ continue; } } -- cgit v1.2.3