diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-10-01 21:50:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-01 21:50:14 +0200 |
commit | 132f842f80b63ae0d782c7dbbd721836acbd29cb (patch) | |
tree | 59106c3f8e9c0c8e3d21d431ad844319f13c4d87 /apps/dav/lib | |
parent | ca958de7e9738ba40f5170f9c3d4980374566fa2 (diff) | |
parent | 458f1b0c03a47a35ee0cb82a57186c3af74cef7a (diff) | |
download | nextcloud-server-132f842f80b63ae0d782c7dbbd721836acbd29cb.tar.gz nextcloud-server-132f842f80b63ae0d782c7dbbd721836acbd29cb.zip |
Merge pull request #33450 from sazanof/bug/base64-card-dav-search
Fix photo url generation (add URI type to VCard2Array)
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/CardDAV/AddressBookImpl.php | 2 |
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('/', [ |