From 0677be7502815f427a5d6bd5a2bc8325060c9ec0 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 16 Jul 2026 10:31:08 -1000 Subject: URL-encode the repolist pager links The pager html-escaped its search and sort values instead of url-encoding them, so a term with a hash or ampersand broke the link and dropped the active filter on the next page. --- source/ui-shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ui-shared.c b/source/ui-shared.c index 7cb8607..7ffacd7 100644 --- a/source/ui-shared.c +++ b/source/ui-shared.c @@ -220,13 +220,13 @@ static void site_url(const char *page, const char *search, const char *sort, int if (search) { html(delim); html("q="); - html_attr(search); + html_url_arg(search); delim = "&"; } if (sort) { html(delim); html("s="); - html_attr(sort); + html_url_arg(sort); delim = "&"; } if (ofs) { -- cgit v2.8.0