diff options
author | Byron Jones <glob@mozilla.com> | 2014-09-09 16:18:58 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2014-09-09 16:18:58 +0200 |
commit | cf7ddf8474fa15955e409d28b2956c6749407f6f (patch) | |
tree | 953a083b70e7612bbcb53323fcbfe83a632437ab | |
parent | 7f1e1ce62d7e178790f338c3ac447466bc67da88 (diff) | |
download | bugzilla-cf7ddf8474fa15955e409d28b2956c6749407f6f.tar.gz bugzilla-cf7ddf8474fa15955e409d28b2956c6749407f6f.tar.xz |
Bug 1064878: Use of uninitialized value in pattern match (m//) at /loader/0x7ffa9dedc498/Bugzilla/Extension/BugmailFilter/Filter.pm line 172
-rw-r--r-- | extensions/BugmailFilter/lib/Filter.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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; |