From 75e8778c2b9f126119358d2c983fed7da95edd9b Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 14 May 2004 05:52:53 +0000 Subject: [PATCH] Emails allow + per RFC. Hat tip: crw git-svn-id: https://develop.svn.wordpress.org/trunk@1269 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions-formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions-formatting.php b/wp-includes/functions-formatting.php index a0270e47aa..9237feba40 100644 --- a/wp-includes/functions-formatting.php +++ b/wp-includes/functions-formatting.php @@ -305,7 +305,7 @@ function convert_smilies($text) { function is_email($user_email) { - $chars = "/^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}\$/i"; + $chars = "/^([a-z0-9+_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,6}\$/i"; if(strstr($user_email, '@') && strstr($user_email, '.')) { if (preg_match($chars, $user_email)) { return true;