From cf7ddf8474fa15955e409d28b2956c6749407f6f Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 9 Sep 2014 22:18:58 +0800 Subject: Bug 1064878: Use of uninitialized value in pattern match (m//) at /loader/0x7ffa9dedc498/Bugzilla/Extension/BugmailFilter/Filter.pm line 172 --- extensions/BugmailFilter/lib/Filter.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/BugmailFilter/lib/Filter.pm b/extensions/BugmailFilter/lib/Filter.pm index a20f472d5..a6e8af459 100644 --- a/extensions/BugmailFilter/lib/Filter.pm +++ b/extensions/BugmailFilter/lib/Filter.pm @@ -167,7 +167,7 @@ sub matches { my ($self, $args) = @_; if (my $field_name = $self->{field_name}) { - if (substr($field_name, 0, 1) eq '~') { + if ($args->{field}->{field_name} && substr($field_name, 0, 1) eq '~') { my $substring = quotemeta(substr($field_name, 1)); if ($args->{field}->{field_name} !~ /$substring/i) { return 0; -- cgit v1.2.3-24-g4f1b