aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CardDAV/AddressBookImpl.php
diff options
context:
space:
mode:
authorMikhail Sazanov <m@sazanof.ru>2022-08-03 13:07:26 +0300
committerMikhail Sazanov <m@sazanof.ru>2022-08-03 13:07:26 +0300
commit458f1b0c03a47a35ee0cb82a57186c3af74cef7a (patch)
tree2d6ce6dd7765b868ed3175da4789c4d63f7002c4 /apps/dav/lib/CardDAV/AddressBookImpl.php
parent9475cc02b218f7cab402ec0b2b370ed6c68650c1 (diff)
downloadnextcloud-server-458f1b0c03a47a35ee0cb82a57186c3af74cef7a.tar.gz
nextcloud-server-458f1b0c03a47a35ee0cb82a57186c3af74cef7a.zip
Add URI type to VCard
Signed-off-by: Mikhail Sazanov <m@sazanof.ru>
Diffstat (limited to 'apps/dav/lib/CardDAV/AddressBookImpl.php')
-rw-r--r--apps/dav/lib/CardDAV/AddressBookImpl.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CardDAV/AddressBookImpl.php b/apps/dav/lib/CardDAV/AddressBookImpl.php
index 2f7f0a22900..c385d0e7b86 100644
--- a/apps/dav/lib/CardDAV/AddressBookImpl.php
+++ b/apps/dav/lib/CardDAV/AddressBookImpl.php
@@ -273,7 +273,7 @@ class AddressBookImpl implements IAddressBook {
];
foreach ($vCard->children() as $property) {
- if ($property->name === 'PHOTO' && $property->getValueType() === 'BINARY') {
+ if ($property->name === 'PHOTO' && in_array($property->getValueType(), ['BINARY', 'URI'])) {
$url = $this->urlGenerator->getAbsoluteURL(
$this->urlGenerator->linkTo('', 'remote.php') . '/dav/');
$url .= implode('/', [