summaryrefslogtreecommitdiffstats
path: root/extensions/Review
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-06-26 22:49:07 +0200
committerGitHub <noreply@github.com>2018-06-26 22:49:07 +0200
commit9e7f6444384c0990b89dda0ead7926b6307b960a (patch)
tree7ca1e028d176570a074912839263afaf1007b555 /extensions/Review
parent5a8de6e08bf6f2c8dbc0f17662281314ae2cfc9b (diff)
downloadbugzilla-9e7f6444384c0990b89dda0ead7926b6307b960a.tar.gz
bugzilla-9e7f6444384c0990b89dda0ead7926b6307b960a.tar.xz
Bug 1471304 - Block sending mail to hosts that end with .tld or .bugs
Diffstat (limited to 'extensions/Review')
-rw-r--r--extensions/Review/Extension.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/Review/Extension.pm b/extensions/Review/Extension.pm
index f05f2ba8b..47edd69a6 100644
--- a/extensions/Review/Extension.pm
+++ b/extensions/Review/Extension.pm
@@ -94,7 +94,7 @@ sub _user_is_active {
my ($self) = @_;
# never consider .bugs or .tld addresses as inactive.
- return 1 if $self->login =~ /bugs$/ || $self->login =~ /\.tld$/;
+ return 1 if $self->login =~ /\.(?:bugs|tld)$/;
return 1 unless Bugzilla->params->{max_reviewer_last_seen};
return 0 if !defined($self->last_seen_date);