diff --git a/src/Model/APContact.php b/src/Model/APContact.php index 7bf76b03b..ec33864f4 100644 --- a/src/Model/APContact.php +++ b/src/Model/APContact.php @@ -263,11 +263,11 @@ class APContact // When the photo is too large, try to shorten it by removing parts if (strlen($apcontact['photo']) > 255) { $parts = parse_url($apcontact['photo']); - unset($parts['query']); + unset($parts['fragment']); $apcontact['photo'] = Network::unparseURL($parts); if (strlen($apcontact['photo']) > 255) { - unset($parts['fragment']); + unset($parts['query']); $apcontact['photo'] = Network::unparseURL($parts); }