mirror of
https://github.com/friendica/friendica
synced 2024-11-17 23:43:40 +00:00
Match all schemes not just acct
This commit is contained in:
parent
1701156a18
commit
958d0ba554
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue