The MU forums have moved to WordPress.org

is_email_address_unsafe() not properly stopping banned email domains (2 posts)

  1. dnorman
    Member
    Posted 14 years ago #

    I've got a bunch of email domains in my "Banned Email Domains" field on the WPMU Options page. But the sploggers keep on registering using the same domains (eg, myspace.info and myspacee.info) even though they're banned.

    I just took a look at the code, and I'm confused - the value of the Banned Email Domains appears to be stored as a text string called "banned_email_domains" but the code in wpmu-functions.php in the is_email_address_unsafe() function (starting at line 880 in wpmu-functions.php) appears to be treating it as an array. Which would fail, and skip the domain sanity check altogether.

    Am I missing something? Does the string need to be converted to an array before walking the entries to check for banned domains?

  2. andrea_r
    Moderator
    Posted 14 years ago #

About this Topic

  • Started 14 years ago by dnorman
  • Latest reply from andrea_r