mirror of
https://git.zx2c4.com/cgit
synced 2024-11-08 09:38:41 +00:00
ui-refs: escape HTML chars in author and tagger names
Everywhere else we use html_txt to escape any special characters in these variables. Do so here as well. Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
parent
3d8a6507ca
commit
d1a6ece439
@ -155,9 +155,9 @@ static int print_tag(struct refinfo *ref)
|
|||||||
html("</td><td>");
|
html("</td><td>");
|
||||||
if (info) {
|
if (info) {
|
||||||
if (info->tagger)
|
if (info->tagger)
|
||||||
html(info->tagger);
|
html_txt(info->tagger);
|
||||||
} else if (ref->object->type == OBJ_COMMIT) {
|
} else if (ref->object->type == OBJ_COMMIT) {
|
||||||
html(ref->commit->author);
|
html_txt(ref->commit->author);
|
||||||
}
|
}
|
||||||
html("</td><td colspan='2'>");
|
html("</td><td colspan='2'>");
|
||||||
if (info) {
|
if (info) {
|
||||||
|
Loading…
Reference in New Issue
Block a user