]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
ui: Remember to print ampersand as proper html entities.
[ps-cgit] / ui-shared.c
index 43166af4d568125306ff3f88d2f6f97c54d2405e..d9d5da74ac14ddb2e01772571e461dfae36c0844 100644 (file)
@@ -83,7 +83,7 @@ char *cgit_fileurl(const char *reponame, const char *pagename,
        } else {
                tmp = fmt("?url=%s/%s/%s", reponame, pagename,
                          (filename ? filename : ""));
        } else {
                tmp = fmt("?url=%s/%s/%s", reponame, pagename,
                          (filename ? filename : ""));
-               delim = "&";
+               delim = "&";
        }
        if (query)
                tmp = fmt("%s%s%s", tmp, delim, query);
        }
        if (query)
                tmp = fmt("%s%s%s", tmp, delim, query);
@@ -146,19 +146,19 @@ static void site_url(const char *page, const char *search, const char *sort, int
 
        if (page) {
                htmlf("?p=%s", page);
 
        if (page) {
                htmlf("?p=%s", page);
-               delim = "&";
+               delim = "&";
        }
        if (search) {
                html(delim);
                html("q=");
                html_attr(search);
        }
        if (search) {
                html(delim);
                html("q=");
                html_attr(search);
-               delim = "&";
+               delim = "&";
        }
        if (sort) {
                html(delim);
                html("s=");
                html_attr(sort);
        }
        if (sort) {
                html(delim);
                html("s=");
                html_attr(sort);
-               delim = "&";
+               delim = "&";
        }
        if (ofs) {
                html(delim);
        }
        if (ofs) {
                html(delim);
@@ -298,13 +298,13 @@ void cgit_log_link(const char *name, const char *title, const char *class,
                html(delim);
                html("id=");
                html_url_arg(rev);
                html(delim);
                html("id=");
                html_url_arg(rev);
-               delim = "&";
+               delim = "&";
        }
        if (grep && pattern) {
                html(delim);
                html("qt=");
                html_url_arg(grep);
        }
        if (grep && pattern) {
                html(delim);
                html("qt=");
                html_url_arg(grep);
-               delim = "&";
+               delim = "&";
                html(delim);
                html("q=");
                html_url_arg(pattern);
                html(delim);
                html("q=");
                html_url_arg(pattern);
@@ -313,7 +313,7 @@ void cgit_log_link(const char *name, const char *title, const char *class,
                html(delim);
                html("ofs=");
                htmlf("%d", ofs);
                html(delim);
                html("ofs=");
                htmlf("%d", ofs);
-               delim = "&";
+               delim = "&";
        }
        if (showmsg) {
                html(delim);
        }
        if (showmsg) {
                html(delim);