From c887de6d8199f6d26312c86f127ce227b44f8538 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Fri, 31 Mar 2023 22:31:47 -0700 Subject: [PATCH] Fix $bug not defined when testing for spam (badly backported patch) --- cgi/bugreport.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index ed5f9be..da79022 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -272,7 +272,7 @@ END next if not $boring and not $record->{type} eq $wanted_type and not $record_wanted_anyway and @records > 1; $seen_message_ids{$msg_id} = 1 if defined $msg_id; # skip spam messages if we're outputting more than one message - next if $multiple_messages and $bug->is_spam($msg_id); + next if $multiple_messages and $spam->is_spam($msg_id); my @lines; if ($record->{inner_file}) { push @lines, scalar $record->{fh}->getline; -- 2.39.2