From: Don Armstrong Date: Sat, 1 Apr 2023 05:31:47 +0000 (-0700) Subject: Fix $bug not defined when testing for spam (badly backported patch) X-Git-Url: https://git.donarmstrong.com/debbugs.git/?a=commitdiff_plain;h=c887de6d8199f6d26312c86f127ce227b44f8538;p=debbugs.git Fix $bug not defined when testing for spam (badly backported patch) --- 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;