gitweb: Handle other types of tag in git_print_log
[gitweb.git] / gitweb / gitweb.perl
index e4a26cbe058773b1879fc6b795e87d635f926d02..0f8b6e2f2f0a0eaacd3c56d007b24c99c87f6f1f 100755 (executable)
@@ -4462,7 +4462,7 @@ sub git_print_log {
        # print log
        my $skip_blank_line = 0;
        foreach my $line (@$log) {
-               if ($line =~ m/^ *(signed[ \-]off[ \-]by[ :]|acked[ \-]by[ :]|cc[ :])/i) {
+               if ($line =~ m/^\s*([A-Z][-A-Za-z]*-[Bb]y|C[Cc]): /) {
                        if (! $opts{'-remove_signoff'}) {
                                print "<span class=\"signoff\">" . esc_html($line) . "</span><br/>\n";
                                $skip_blank_line = 1;