neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit d1a6ece439e651a5b4ca535850e1c471f61c472e
parent 3d8a6507ca542881a5e8b30ad6b7068a9c4fdeea
Author: John Keeping <john@keeping.me.uk>
Date:   Sun, 12 Jan 2014 19:45:15 +0000

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>

Diffstat:
Mui-refs.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui-refs.c b/ui-refs.c @@ -155,9 +155,9 @@ static int print_tag(struct refinfo *ref) html("</td><td>"); if (info) { if (info->tagger) - html(info->tagger); + html_txt(info->tagger); } else if (ref->object->type == OBJ_COMMIT) { - html(ref->commit->author); + html_txt(ref->commit->author); } html("</td><td colspan='2'>"); if (info) {