summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-06-19 18:04:48 +0000
committeralecpl <alec@alec.pl>2010-06-19 18:04:48 +0000
commitd7a5dfa26abe21aa9216fe862225baa2b5caca3e (patch)
tree44b4cbe223f21a164c0bc4a8d1a09bcb376a2993
parenta2e81736a91f72c8688e6ab0f45061369614dae3 (diff)
- Fix dot-atom expression in e-mail validation regexp (#1486808)
-rw-r--r--program/include/main.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 7c506d9e6..fff9652fa 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1586,7 +1586,7 @@ function check_email($email, $dns_check=true)
// from PEAR::Validate
$regexp = '&^(?:
("\s*(?:[^"\f\n\r\t\v\b\s]+\s*)+")| #1 quoted name
- ([-\w!\#\$%\&\'*+~/^`|{}]+(?:\.[-\w!\#\$%\&\'*+~/^`|{}]+)*)) #2 OR dot-atom
+ ([-\w!\#\$%\&\'*+~/^`|{}=]+(?:\.[-\w!\#\$%\&\'*+~/^`|{}=]+)*)) #2 OR dot-atom (RFC5322)
$&xi';
if (!preg_match($regexp, $local_part))