ui: Remember to print ampersand as proper html entities.
diff --git a/ui-shared.c b/ui-shared.c
index 43166af..d9d5da7 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -83,7 +83,7 @@
} else {
tmp = fmt("?url=%s/%s/%s", reponame, pagename,
(filename ? filename : ""));
- delim = "&";
+ delim = "&";
}
if (query)
tmp = fmt("%s%s%s", tmp, delim, query);
@@ -146,19 +146,19 @@
if (page) {
htmlf("?p=%s", page);
- delim = "&";
+ delim = "&";
}
if (search) {
html(delim);
html("q=");
html_attr(search);
- delim = "&";
+ delim = "&";
}
if (sort) {
html(delim);
html("s=");
html_attr(sort);
- delim = "&";
+ delim = "&";
}
if (ofs) {
html(delim);
@@ -298,13 +298,13 @@
html(delim);
html("id=");
html_url_arg(rev);
- delim = "&";
+ delim = "&";
}
if (grep && pattern) {
html(delim);
html("qt=");
html_url_arg(grep);
- delim = "&";
+ delim = "&";
html(delim);
html("q=");
html_url_arg(pattern);
@@ -313,7 +313,7 @@
html(delim);
html("ofs=");
htmlf("%d", ofs);
- delim = "&";
+ delim = "&";
}
if (showmsg) {
html(delim);