From 2ba4333f70af1a11d28fd44f86cd35a5a7d78c2a Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 28 Mar 2020 15:18:12 +0000 Subject: [PATCH] Exchange "part" with "fragment" --- src/Model/APContact.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/APContact.php b/src/Model/APContact.php index 7bf76b03b1..ec33864f4d 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); }