diff --git a/includes/HookHandlers/SpamEmail.php b/includes/HookHandlers/SpamEmail.php index 30fe63e..80a1721 100644 --- a/includes/HookHandlers/SpamEmail.php +++ b/includes/HookHandlers/SpamEmail.php @@ -58,6 +58,7 @@ public function onIsValidEmailAddr( $addr, &$result ) { $match = preg_match( $regex, $addr ); AtEase::restoreWarnings(); if ( $match ) { + $result = false; return false; } } @@ -74,6 +75,7 @@ static function ( $block ) { $this->databaseBlockStore->newListFromConds( [] ) ) ) ); if ( in_array( $addr, $emails ) ) { + $result = false; return false; } }