allow hyphens in subdomains for webfinger addresses
This commit is contained in:
@@ -257,7 +257,7 @@ class OStatusPlugin extends Plugin
|
|||||||
$matches = array();
|
$matches = array();
|
||||||
|
|
||||||
// Webfinger matches: @user@example.com
|
// 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,
|
$text,
|
||||||
$wmatches,
|
$wmatches,
|
||||||
PREG_OFFSET_CAPTURE)) {
|
PREG_OFFSET_CAPTURE)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user