diff options
Diffstat (limited to 'ui-repolist.c')
-rw-r--r-- | ui-repolist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index f622a01..7b1fec3 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
@@ -106,7 +106,9 @@ static int is_in_url(struct cgit_repo *repo) | |||
106 | 106 | ||
107 | static void print_sort_header(const char *title, const char *sort) | 107 | static void print_sort_header(const char *title, const char *sort) |
108 | { | 108 | { |
109 | htmlf("<th class='left'><a href='%s?s=%s", cgit_rooturl(), sort); | 109 | html("<th class='left'><a href='"); |
110 | html_attr(cgit_rooturl()); | ||
111 | htmlf("?s=%s", sort); | ||
110 | if (ctx.qry.search) { | 112 | if (ctx.qry.search) { |
111 | html("&q="); | 113 | html("&q="); |
112 | html_url_arg(ctx.qry.search); | 114 | html_url_arg(ctx.qry.search); |