summaryrefslogtreecommitdiffabout
path: root/ui-tree.c
Side-by-side diff
Diffstat (limited to 'ui-tree.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-tree.c b/ui-tree.c
index 006ca47..cb57d8d 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -34,31 +34,31 @@ static int print_entry(const unsigned char *sha1, const char *base,
html_attr(fmt(cgit_repo->module_link,
name,
sha1_to_hex(sha1)));
} else if (S_ISDIR(mode)) {
html("class='ls-dir'><a href='");
html_attr(cgit_pageurl(cgit_query_repo, "tree",
- fmt("h=%s&id=%s&path=%s%s/",
+ fmt("h=%s&amp;id=%s&amp;path=%s%s/",
curr_rev,
sha1_to_hex(sha1),
cgit_query_path ? cgit_query_path : "",
pathname)));
} else {
html("class='ls-blob'><a href='");
html_attr(cgit_pageurl(cgit_query_repo, "view",
- fmt("h=%s&id=%s&path=%s%s", curr_rev,
+ fmt("h=%s&amp;id=%s&amp;path=%s%s", curr_rev,
sha1_to_hex(sha1),
cgit_query_path ? cgit_query_path : "",
pathname)));
}
htmlf("'>%s</a></td>", name);
htmlf("<td class='filesize'>%li</td>", size);
html("<td class='links'><a href='");
html_attr(cgit_pageurl(cgit_query_repo, "log",
- fmt("h=%s&path=%s%s",
+ fmt("h=%s&amp;path=%s%s",
curr_rev,
cgit_query_path ? cgit_query_path : "",
pathname)));
html("'>history</a></td>");
html("</tr>\n");
free(name);