Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/12/2016 02:02:23 PM (7 years ago)
Author:
xknown
Message:

Branch 0.9: Use preg_match instead of ereg

See #3033

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9/bb-includes/registration-functions.php

    r2358 r6161  
    22
    33function bb_verify_email( $email, $check_domain = false ) {
    4     if (ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.
    5         '[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.
    6         '[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email)) {
     4    if (preg_match('#^[-!\#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.
     5        '[-!\#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.
     6        '[-!\#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$#', $email)) {
    77        if ( $check_domain && function_exists('checkdnsrr') ) {
    88            list (, $domain)  = explode('@', $email);
Note: See TracChangeset for help on using the changeset viewer.