From: Matthew Exon Date: Mon, 8 Jul 2024 18:04:34 +0000 (+0200) Subject: Match all schemes not just acct X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=958d0ba554f006d6a97a359022940ae082f41d21;p=friendica.git Match all schemes not just acct --- diff --git a/src/Module/Xrd.php b/src/Module/Xrd.php index 1e247341a2..7a983538a1 100644 --- a/src/Module/Xrd.php +++ b/src/Module/Xrd.php @@ -69,7 +69,7 @@ class Xrd extends BaseModule if (substr($uri, 0, 4) === 'http') { $name = ltrim(basename($uri), '~'); $host = parse_url($uri, PHP_URL_HOST); - } else if (substr($uri, 0, 4) === 'acct') { + } else if (preg_match('/^[[:alpha:]][[:alnum:]+-.]+:/', $uri)) { $local = str_replace('acct:', '', $uri); if (substr($local, 0, 2) == '//') { $local = substr($local, 2);