From 6bd5be281ed46fff543e2f98356bdfb185e41a6d Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 19 Jun 2019 17:21:35 +0000 Subject: [PATCH] Normalise it --- src/Model/APContact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/APContact.php b/src/Model/APContact.php index ff28299741..90a8b9e6fb 100644 --- a/src/Model/APContact.php +++ b/src/Model/APContact.php @@ -40,7 +40,7 @@ class APContact extends BaseObject $curlResult = Network::curl($webfinger, false, ['timeout' => $xrd_timeout, 'accept_content' => 'application/jrd+json,application/json']); if (!$curlResult->isSuccess() || empty($curlResult->getBody())) { - $webfinger = 'http://' . $addr_parts[1] . '/.well-known/webfinger?resource=acct:' . urlencode($addr); + $webfinger = Strings::normalizeLink($webfinger); $curlResult = Network::curl($webfinger, false, ['timeout' => $xrd_timeout, 'accept_content' => 'application/jrd+json,application/json']);