mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
[ticket/10162] Add test cases for top level domain names longer than 6 chars.
PHPBB3-10162
This commit is contained in:
@@ -28,6 +28,8 @@ class phpbb_regex_email_test extends phpbb_test_case
|
|||||||
array('alice_foo@bar.phpbb.com'),
|
array('alice_foo@bar.phpbb.com'),
|
||||||
array('alice+tag@foo.phpbb.com'),
|
array('alice+tag@foo.phpbb.com'),
|
||||||
array('alice&tag@foo.phpbb.com'),
|
array('alice&tag@foo.phpbb.com'),
|
||||||
|
array('alice@phpbb.australia'),
|
||||||
|
array('alice@phpbb.topZlevelZdomainZnamesZcanZbeZupZtoZsixtyZthreeZcharactersZlong'),
|
||||||
|
|
||||||
//array('"John Doe"@example.com'),
|
//array('"John Doe"@example.com'),
|
||||||
//array('Alice@[192.168.2.1]'), // IPv4
|
//array('Alice@[192.168.2.1]'), // IPv4
|
||||||
@@ -96,6 +98,7 @@ class phpbb_regex_email_test extends phpbb_test_case
|
|||||||
array('! "#$%(),/;<>[]`|@invalidCharsInLocal.org'),
|
array('! "#$%(),/;<>[]`|@invalidCharsInLocal.org'),
|
||||||
array('invalidCharsInDomain@! "#$%(),/;<>_[]`|.org'),
|
array('invalidCharsInDomain@! "#$%(),/;<>_[]`|.org'),
|
||||||
array('local@SecondLevelDomainNamesAreInvalidIfTheyAreLongerThan64Charactersss.org'),
|
array('local@SecondLevelDomainNamesAreInvalidIfTheyAreLongerThan64Charactersss.org'),
|
||||||
|
array('alice@phpbb.topZlevelZdomainZnamesZcanZbeZupZtoZsixtyZthreeZcharactersZlongZ'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user