From 720b6ece90900df9f836a45d8e7f1cd56f62400a Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sun, 11 Jan 2009 16:37:47 +0100 Subject: ui-tag: escape tagnames properly Signed-off-by: Lars Hjemli --- ui-tag.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui-tag.c b/ui-tag.c index 3aea87d..54b9f4c 100644 --- a/ui-tag.c +++ b/ui-tag.c @@ -53,8 +53,9 @@ void cgit_print_tag(char *revname) return; } html("\n"); - htmlf("\n", - revname, sha1_to_hex(sha1)); + htmlf("\n", sha1_to_hex(sha1)); if (info->tagger_date > 0) { html("
Tag name%s (%s)
Tag name"); + html_txt(revname); + htmlf(" (%s)
Tag date"); cgit_print_date(info->tagger_date, FMT_LONGDATE, ctx.cfg.local_time); -- cgit v1.2.3-57-g22cb