allow hyphens in subdomains for webfinger addresses
This commit is contained in:
parent
2e808fdc82
commit
275002d88a
|
@ -257,7 +257,7 @@ class OStatusPlugin extends Plugin
|
|||
$matches = array();
|
||||
|
||||
// Webfinger matches: @user@example.com
|
||||
if (preg_match_all('!(?:^|\s+)@((?:\w+\.)*\w+@(?:\w+\.)*\w+(?:\w+\-\w+)*\.\w+)!',
|
||||
if (preg_match_all('!(?:^|\s+)@((?:\w+\.)*\w+@(?:\w+\-?\w+\.)*\w+(?:\w+\-\w+)*\.\w+)!',
|
||||
$text,
|
||||
$wmatches,
|
||||
PREG_OFFSET_CAPTURE)) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user