aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-05-30 21:09:30 +0200
committerAndreas Fischer <bantu@phpbb.com>2012-05-30 21:11:17 +0200
commit037b95eccc1f039e687360d9f804f7323a65e9df (patch)
tree1107e15894623ce6b5d9972312c0a5e021e1b344
parentde4dff8bb077e98e203e0e83bd52630053970ee0 (diff)
downloadforums-037b95eccc1f039e687360d9f804f7323a65e9df.tar
forums-037b95eccc1f039e687360d9f804f7323a65e9df.tar.gz
forums-037b95eccc1f039e687360d9f804f7323a65e9df.tar.bz2
forums-037b95eccc1f039e687360d9f804f7323a65e9df.tar.xz
forums-037b95eccc1f039e687360d9f804f7323a65e9df.zip
[ticket/10162] Increase maximum length of email address TLD from 6 to 63.
Increase maximum length of email address top level domains from 6 to 63. PHPBB3-10162
-rw-r--r--phpBB/includes/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index bc811cc75b..5914831539 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -3456,7 +3456,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\!\#$\%\'\*\+\-\/\=\?\^\`{\|\}\~]|&amp;)+@((((([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\!\#$\%\'\*\+\-\/\=\?\^\`{\|\}\~]|&amp;)+@((((([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':