Changeset 1269
- Timestamp:
- 05/14/2004 05:52:53 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions-formatting.php
r1239 r1269 306 306 307 307 function 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"; 309 309 if(strstr($user_email, '@') && strstr($user_email, '.')) { 310 310 if (preg_match($chars, $user_email)) {
Note: See TracChangeset
for help on using the changeset viewer.