diff options
author | Andreas Gohr <andi@splitbrain.org> | 2005-09-16 21:17:19 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2005-09-16 21:17:19 +0200 |
commit | 2e53fc70d4a6c22cb5d406014d896620fd72eb76 (patch) | |
tree | f625b9bd84b128ac0fe3b1e501f939a9f4cd3df1 /inc/mail.php | |
parent | 032d6fd665158f6a7f048a07d44d7694b6704cea (diff) | |
download | rpg-2e53fc70d4a6c22cb5d406014d896620fd72eb76.tar.gz rpg-2e53fc70d4a6c22cb5d406014d896620fd72eb76.tar.bz2 |
allowing + char in email addresses
darcs-hash:20050916191719-7ad00-703ee14706e6629e6312c103be0121bf2996c6cb.gz
Diffstat (limited to 'inc/mail.php')
-rw-r--r-- | inc/mail.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/mail.php b/inc/mail.php index 10ce08c20..339dbf9ad 100644 --- a/inc/mail.php +++ b/inc/mail.php @@ -142,7 +142,7 @@ function mail_encode_address($string,$header=''){ * @return bool true if address is valid */ function mail_isvalid($email){ - return eregi("^[0-9a-z]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,4}$", $email); + return eregi("^[0-9a-z]([+-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,4}$", $email); } /** |