summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Search
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-06-12 10:38:43 +0200
committerByron Jones <bjones@mozilla.com>2013-06-12 10:38:43 +0200
commit75645b089d19ff211dbf19007a7048c0e8f8b521 (patch)
treeded403839e76d753e99d6825a32e8232643d2393 /Bugzilla/Search
parentb9915abd8c37fd3c48a84ab8463c9765b6e20814 (diff)
downloadbugzilla-75645b089d19ff211dbf19007a7048c0e8f8b521.tar.gz
bugzilla-75645b089d19ff211dbf19007a7048c0e8f8b521.tar.xz
Bug 882059: fix "use of uninitialized value" warnings, and ignore some errors/warnings
Diffstat (limited to 'Bugzilla/Search')
-rw-r--r--Bugzilla/Search/Quicksearch.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm
index 61e4a926a..48eaff8d1 100644
--- a/Bugzilla/Search/Quicksearch.pm
+++ b/Bugzilla/Search/Quicksearch.pm
@@ -214,6 +214,7 @@ sub quicksearch {
foreach my $qsword (@qswords) {
my @or_operand = parse_line('\|', 1, $qsword);
foreach my $term (@or_operand) {
+ next unless defined $term;
my $negate = substr($term, 0, 1) eq '-';
if ($negate) {
$term = substr($term, 1);
@@ -344,6 +345,7 @@ sub _handle_status_and_resolution {
sub _handle_special_first_chars {
my ($qsword, $negate) = @_;
+ return if $qsword eq '';
my $firstChar = substr($qsword, 0, 1);
my $baseWord = substr($qsword, 1);
@@ -415,6 +417,7 @@ sub _handle_field_names {
$bug_status_set = 1;
}
foreach my $value (@values) {
+ next unless defined $value;
my $operator = FIELD_OPERATOR->{$translated} || 'substring';
# If the string was quoted to protect some special
# characters such as commas and colons, we need