index: escape html of git commit messages
[sheet.git] / index.plp
index 57cca2053319d5704f9a6aeecd2c5d245822a67b..db6284c9a8a70aa0d01ceb7c7cacccf9a1f52ef3 100644 (file)
--- a/index.plp
+++ b/index.plp
@@ -32,6 +32,7 @@ my @format = ('--date=short', "--pretty=%ad (%ar)\t%s");
 if (open my $log, '-|', git => 'log', -1, @format) {{
        my $line = readline $log;
        $line or next;  # explicitly ignore empty input
+       EscapeHTML $line;
        my ($date, $subject) = split /[\t\n]/, $line;
        $date =~ s/ \K/<small>/ and $date .= '</small>';
        say "<p><strong>Last update</strong>: $date $subject</p>";