Emails allow + per RFC. Hat tip: crw

git-svn-id: https://develop.svn.wordpress.org/trunk@1269 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-05-14 05:52:53 +00:00
parent 0388facef0
commit 75e8778c2b
1 changed files with 1 additions and 1 deletions

View File

@ -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;