Make WordPress Core

Changeset 1269


Ignore:
Timestamp:
05/14/2004 05:52:53 AM (21 years ago)
Author:
saxmatt
Message:

Emails allow + per RFC. Hat tip: crw

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-formatting.php

    r1239 r1269  
    306306
    307307function is_email($user_email) {
    308     $chars = "/^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}\$/i";
     308    $chars = "/^([a-z0-9+_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,6}\$/i";
    309309    if(strstr($user_email, '@') && strstr($user_email, '.')) {
    310310        if (preg_match($chars, $user_email)) {
Note: See TracChangeset for help on using the changeset viewer.