summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-09-09 16:18:58 +0200
committerByron Jones <glob@mozilla.com>2014-09-09 16:18:58 +0200
commitcf7ddf8474fa15955e409d28b2956c6749407f6f (patch)
tree953a083b70e7612bbcb53323fcbfe83a632437ab
parent7f1e1ce62d7e178790f338c3ac447466bc67da88 (diff)
downloadbugzilla-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.pm2
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;