Version 4.7.13
This commit is contained in:
1 parent
fd22d99e69
commit
7124a02564
954 files changed
+29277
-59308
No files matched your search
@@ -33,6 +33,7 @@ class _Email extends Text
|
||||
public $childDefaultOptions = array(
|
||||
'accountEmail' => FALSE,
|
||||
'htmlAutocomplete' => "email",
|
||||
'bypassProfanity' => \IPS\Helpers\Form\Text::BYPASS_PROFANITY_ALL
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -65,6 +66,12 @@ class _Email extends Text
|
||||
/* Check Banned and Allowed Emails only if the data are not coming from an administrator */
|
||||
if ( !\IPS\Member::loggedIn()->isAdmin() )
|
||||
{
|
||||
/* Check it's not known to be undeliverable */
|
||||
if ( \IPS\Email::emailIsBlocked( $value ) )
|
||||
{
|
||||
throw new \DomainException( 'member_email_blocked_info' );
|
||||
}
|
||||
|
||||
/* Check it's not a banned address */
|
||||
foreach ( \IPS\Db::i()->select( 'ban_content', 'core_banfilters', array( "ban_type=?", 'email' ) ) as $bannedEmail )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user