Fix malformed query params

This commit is contained in:
ErickSkrauch 2024-06-11 04:16:36 +02:00
parent 46c5a0f878
commit ca304261a3
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -49,7 +49,7 @@ class SkinsSystemApi {
$query['onUnknownProfileRespondWithUuid'] = $fallbackUuid;
}
$url = "/profile/{$username}" . (empty($query) ? '' : http_build_query($query));
$url = "/profile/{$username}" . (empty($query) ? '' : ('?' . http_build_query($query)));
$response = $this->getClient()->request('GET', $this->buildUrl($url));
if ($response->getStatusCode() !== 200) {
return null;