From: Eric Wong Date: Mon, 12 Feb 2024 13:13:50 +0000 (+0000) Subject: viewvcs: HTML fixes for commits X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c22d8d2b3fa6403882dfe9c4e63d0aae86620f58;p=thirdparty%2Fpublic-inbox.git viewvcs: HTML fixes for commits The "patch is too large to show" text is now broken by an
to prevent it from being confused as part of a commit message (or having somebody intentionally insert that text in a commit message to confuse readers). A missing is also necessary before the
tag for the related commit search form. --- diff --git a/lib/PublicInbox/ViewVCS.pm b/lib/PublicInbox/ViewVCS.pm index 2a305303d..61329db6c 100644 --- a/lib/PublicInbox/ViewVCS.pm +++ b/lib/PublicInbox/ViewVCS.pm @@ -274,7 +274,7 @@ EOM undef $bdy; # free memory my $fh = delete $ctx->{patch_fh}; if (-s $fh > $MAX_SIZE) { - print $zfh "---\n patch is too large to show\n"; + print $zfh '
patch is too large to show
'; } else { # prepare flush_diff: seek $fh, 0, SEEK_SET; PublicInbox::IO::read_all $fh, -s _, \$x; @@ -312,7 +312,7 @@ EOM $alt = ''; } print $zfh <

find related emails, including ancestors/descendants/conflicts