From 3d0875fade96139af6b514a85ee29f21564022cd Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sat, 2 Jun 2001 06:05:56 +0000 Subject: CHANGES - Modified check_mail() to allow '+' characters in mail addresses. TODO - Extend the regular expression to allow addresses valid in the RFC's. Currently IP domains are banned, and so are many other extensions of RFC 822. This is not a priority since we currently support 96% of all addresses. --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 5aeebd607..081c60ccb 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -65,7 +65,7 @@ function check_code($text) { } function check_mail($mail) { - return eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $mail) ? 1 : 0; + return eregi("^[_+\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $mail) ? 1 : 0; } function check_name($name) { -- cgit v1.2.3