X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/1de6591159cfe2e0cb442d781c0a360e4928ccca..efa2879ad760f6f12c1aa9d2bb9918f0afe9f084:/ui-repolist.c?ds=inline diff --git a/ui-repolist.c b/ui-repolist.c index 7b1fec3..c2bcce1 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -99,7 +99,7 @@ static int is_in_url(struct cgit_repo *repo) { if (!ctx.qry.url) return 1; - if (repo->url && !prefixcmp(repo->url, ctx.qry.url)) + if (repo->url && starts_with(repo->url, ctx.qry.url)) return 1; return 0; } @@ -259,9 +259,9 @@ void cgit_print_repolist() ++columns; ctx.page.title = ctx.cfg.root_title; - cgit_print_http_headers(&ctx); - cgit_print_docstart(&ctx); - cgit_print_pageheader(&ctx); + cgit_print_http_headers(); + cgit_print_docstart(); + cgit_print_pageheader(); if (ctx.cfg.index_header) html_include(ctx.cfg.index_header); @@ -306,7 +306,13 @@ void cgit_print_repolist() html_link_close(); html("