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();
|
$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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user