Skip to content

Commit

Permalink
fixup! Log failure on parsing
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Jan 4, 2019
1 parent 22cdc51 commit e37c275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/CardDAV/PhotoCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ private function getPhoto(Card $node) {
}

$photo = $vObject->PHOTO;
$val = $photo->getValue();

// handle data URI. e.g PHOTO;VALUE=URI:data:image/jpeg;base64,/9j/4AAQSkZJRgABAQE
if ($photo->getValueType() === 'URI') {
Expand All @@ -215,7 +216,6 @@ private function getPhoto(Card $node) {
} else {
// get type if binary data
$type = $this->getBinaryType($photo);
$val = $photo->getValue();
}

$allowedContentTypes = [
Expand Down

0 comments on commit e37c275

Please sign in to comment.