X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/f60ffa143cca61e9729ac71033e1a556cf422871..eeaffc33432d3cf91902cac3eab50c0598bdaa19:/ui-repolist.c?ds=inline diff --git a/ui-repolist.c b/ui-repolist.c index 92e80cf..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; } @@ -306,7 +306,13 @@ void cgit_print_repolist() html_link_close(); html("