From 5ae3b81337a6ba643d08d67ba6bba39f48bb60ea Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 15 Apr 2021 13:58:08 +0300 Subject: [PATCH] cmd/tools/fast/fast.v: html encode < > in commit messages --- cmd/tools/fast/fast.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/tools/fast/fast.v b/cmd/tools/fast/fast.v index 2bf0c83aa9..f04ea0d385 100644 --- a/cmd/tools/fast/fast.v +++ b/cmd/tools/fast/fast.v @@ -54,11 +54,12 @@ fn main() { date := time.unix(commit_date.int()) mut out := os.create('table.html') ? // Place the new row on top + html_message := message.replace_each(['<', '<', '>', '>']) table = ' $date.format() $commit - $message + $html_message ${diff1}ms ${diff2}ms ${diff3}ms