X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/f7f26f88755ac6a3b9af4918b51b0d6e7a692c78..efa2879ad760f6f12c1aa9d2bb9918f0afe9f084:/ui-repolist.c diff --git a/ui-repolist.c b/ui-repolist.c index d4ee279..c2bcce1 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -99,14 +99,16 @@ 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; } static void print_sort_header(const char *title, const char *sort) { - htmlf(""); html_txt(ctx.repo->owner); + html(""); html(""); } print_modtime(ctx.repo); @@ -331,13 +339,7 @@ void cgit_print_site_readme() { if (!ctx.cfg.root_readme) return; - if (ctx.cfg.about_filter) { - ctx.cfg.about_filter->argv[1] = ctx.cfg.root_readme; - cgit_open_filter(ctx.cfg.about_filter); - } + cgit_open_filter(ctx.cfg.about_filter, ctx.cfg.root_readme); html_include(ctx.cfg.root_readme); - if (ctx.cfg.about_filter) { - cgit_close_filter(ctx.cfg.about_filter); - ctx.cfg.about_filter->argv[1] = NULL; - } + cgit_close_filter(ctx.cfg.about_filter); }