summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/mail.php2
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);
}
/**