[wp-trac] [WordPress Trac] #15706: Allow wildcarded domains in multisite limited email domains

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 5 05:05:50 UTC 2011


#15706: Allow wildcarded domains in multisite limited email domains
-------------------------+------------------
 Reporter:  djcp         |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.3
Component:  Multisite    |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------

Comment (by SergeyBiryukov):

 Replying to [comment:7 andrea_r]:
 > As an extra, anyway you could make the same in the DISallowed email
 field? So super admins can block all *.info or *.ru domains from signing
 up (for example).

 `is_email_address_unsafe()` seems to support regular expressions:
 {{{
 if (
         strstr( $email_domain, $banned_domain ) ||
         (
                 strstr( $banned_domain, '/' ) &&
                 preg_match( $banned_domain, $email_domain )
         )
 )
 return true;
 }}}


 According to comments on #14695, it's possible to use something like
 `/.*\.info/`.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15706#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list