X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/389cc17357e2040c9542d3e085f64a8d2f085e9a..ed3497b0de6634350cd17b320538fba918d4084c:/ui-refs.c diff --git a/ui-refs.c b/ui-refs.c index 0ae0612..c97b0c6 100644 --- a/ui-refs.c +++ b/ui-refs.c @@ -1,6 +1,6 @@ /* ui-refs.c: browse symbolic refs * - * Copyright (C) 2006 Lars Hjemli + * Copyright (C) 2006-2014 cgit Development Team * * Licensed under GNU General Public License v2 * (see COPYING for full license text) @@ -155,9 +155,9 @@ static int print_tag(struct refinfo *ref) html(""); 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(""); if (info) { @@ -240,9 +240,9 @@ void cgit_print_refs() html(""); - if (ctx.qry.path && !strncmp(ctx.qry.path, "heads", 5)) + if (ctx.qry.path && !prefixcmp(ctx.qry.path, "heads")) cgit_print_branches(0); - else if (ctx.qry.path && !strncmp(ctx.qry.path, "tags", 4)) + else if (ctx.qry.path && !prefixcmp(ctx.qry.path, "tags")) cgit_print_tags(0); else { cgit_print_branches(0);