diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
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.
-rw-r--r--source/ui-shared.c4
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 = "&amp;";
}
if (sort) {
html(delim);
html("s=");
- html_attr(sort);
+ html_url_arg(sort);
delim = "&amp;";
}
if (ofs) {