From f409bd70346c221e9692d43937462f73e6bc090e Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 2 Dec 2021 08:03:38 -0500 Subject: [PATCH] Remove all-numeric usernames condition - False negatives aren't recoverable --- src/Network/Probe.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Network/Probe.php b/src/Network/Probe.php index e9e8478524..d8c1a91530 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -529,12 +529,7 @@ class Probe $path_parts = explode('/', trim($parts['path'] ?? '', '/')); if (!empty($path_parts)) { $nick = ltrim(end($path_parts), '@'); - // When the last part of the URI is numeric then it is most likely an ID and not a nick name - if (!is_numeric($nick)) { - $addr = $nick . '@' . $host; - } else { - $nick = ''; - } + $addr = $nick . '@' . $host; } $webfinger = self::getWebfinger($parts['scheme'] . '://' . $host . self::WEBFINGER, 'application/jrd+json', $uri, $addr);