summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-06-02 06:05:56 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-06-02 06:05:56 +0000
commit3d0875fade96139af6b514a85ee29f21564022cd (patch)
tree9345078372a0ca39a6b5eae7c79124c2e9932a05 /includes/common.inc
parent4060a9ee8078f0855d8cbf2ab24a804819a152dd (diff)
downloadbrdo-3d0875fade96139af6b514a85ee29f21564022cd.tar.gz
brdo-3d0875fade96139af6b514a85ee29f21564022cd.tar.bz2
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.
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc2
1 files changed, 1 insertions, 1 deletions
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) {