]> git.donarmstrong.com Git - debbugs.git/commitdiff
Fix $bug not defined when testing for spam (badly backported patch)
authorDon Armstrong <don@donarmstrong.com>
Sat, 1 Apr 2023 05:31:47 +0000 (22:31 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 1 Apr 2023 05:31:47 +0000 (22:31 -0700)
cgi/bugreport.cgi

index ed5f9be74703eb70fbf423952c1bc4df137e6ebc..da790227c4be8266b88ead452442b958fe1086ac 100755 (executable)
@@ -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;