diff options
author | Nils Adermann <naderman@naderman.de> | 2012-05-31 15:30:05 +0200 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2012-05-31 15:30:05 +0200 |
commit | 4a5004781aeb8638a0993476c77035d5311500a8 (patch) | |
tree | 087e371d580ec1136bffacb4864bf50f75811d63 /phpBB/includes/functions.php | |
parent | 1b73f824303e484b466e3b5db613eb18768530ff (diff) | |
parent | f6f300d3f9366a2c63e1b2dc4d8f35574c51ed4b (diff) | |
download | forums-4a5004781aeb8638a0993476c77035d5311500a8.tar forums-4a5004781aeb8638a0993476c77035d5311500a8.tar.gz forums-4a5004781aeb8638a0993476c77035d5311500a8.tar.bz2 forums-4a5004781aeb8638a0993476c77035d5311500a8.tar.xz forums-4a5004781aeb8638a0993476c77035d5311500a8.zip |
Merge branch 'develop-olympus' into develop
By Andreas Fischer
via Andreas Fischer (1) and Nils Adermann (1)
* develop-olympus:
[ticket/10162] Increase maximum length of email address TLD from 6 to 63.
[ticket/10162] Add test cases for top level domain names longer than 6 chars.
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 0eb0b9c26f..95f2cf8d26 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -3250,7 +3250,7 @@ function get_preg_expression($mode) case 'email': // Regex written by James Watts and Francisco Jose Martin Moreno // http://fightingforalostcause.net/misc/2006/compare-email-regex.php - return '([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*(?:[\w\!\#$\%\'\*\+\-\/\=\?\^\`{\|\}\~]|&)+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,6})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)'; + return '([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*(?:[\w\!\#$\%\'\*\+\-\/\=\?\^\`{\|\}\~]|&)+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,63})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)'; break; case 'bbcode_htm': |