Exchange "part" with "fragment"

This commit is contained in:
Michael 2020-03-28 15:18:12 +00:00
parent 3761e9ee51
commit 2ba4333f70
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}