summaryrefslogtreecommitdiffabout
path: root/ui-view.c
authorOndrej Jirman <ondrej.jirman@zonio.net>2007-05-25 23:15:10 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-05-31 08:18:38 (UTC)
commit1a63cfcc3d83919e790e7e279eb35fc75adb0e3c (patch) (side-by-side diff)
treea2c613c6ae642dd6a4015142ccf04ed7c5629b8f /ui-view.c
parent0928d8827a714f3908efa7eb9eb4cde28761af26 (diff)
downloadcgit-1a63cfcc3d83919e790e7e279eb35fc75adb0e3c.zip
cgit-1a63cfcc3d83919e790e7e279eb35fc75adb0e3c.tar.gz
cgit-1a63cfcc3d83919e790e7e279eb35fc75adb0e3c.tar.bz2
Use &amp; instead of & in URLs.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-view.c') (more/less context) (show whitespace changes)
-rw-r--r--ui-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-view.c b/ui-view.c
index dbe4b29..8873415 100644
--- a/ui-view.c
+++ b/ui-view.c
@@ -40,13 +40,13 @@ void cgit_print_view(const char *hex, char *path)
htmlf("%s %s, %li bytes", typename(type), hex, size);
if (path)
html(")");
html(" <a href='");
html_attr(cgit_pageurl(cgit_query_repo, "blob",
- fmt("id=%s&path=%s",
+ fmt("id=%s&amp;path=%s",
hex,
path)));
html("'>download</a>");
html("</th></tr>\n");
html("<tr><td class='blob'>\n");
html_txt(buf);