allow hyphens in subdomains for webfinger addresses
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user