author | Ondrej 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) |
commit | 1a63cfcc3d83919e790e7e279eb35fc75adb0e3c (patch) (unidiff) | |
tree | a2c613c6ae642dd6a4015142ccf04ed7c5629b8f /ui-view.c | |
parent | 0928d8827a714f3908efa7eb9eb4cde28761af26 (diff) | |
download | cgit-1a63cfcc3d83919e790e7e279eb35fc75adb0e3c.zip cgit-1a63cfcc3d83919e790e7e279eb35fc75adb0e3c.tar.gz cgit-1a63cfcc3d83919e790e7e279eb35fc75adb0e3c.tar.bz2 |
Use & instead of & in URLs.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | ui-view.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,26 +30,26 @@ void cgit_print_view(const char *hex, char *path) | |||
30 | if (!buf) { | 30 | if (!buf) { |
31 | cgit_print_error(fmt("Error reading object %s", hex)); | 31 | cgit_print_error(fmt("Error reading object %s", hex)); |
32 | return; | 32 | return; |
33 | } | 33 | } |
34 | 34 | ||
35 | buf[size] = '\0'; | 35 | buf[size] = '\0'; |
36 | html("<table class='list'>\n"); | 36 | html("<table class='list'>\n"); |
37 | html("<tr class='nohover'><th class='left'>"); | 37 | html("<tr class='nohover'><th class='left'>"); |
38 | if (path) | 38 | if (path) |
39 | htmlf("%s (", path); | 39 | htmlf("%s (", path); |
40 | htmlf("%s %s, %li bytes", typename(type), hex, size); | 40 | htmlf("%s %s, %li bytes", typename(type), hex, size); |
41 | if (path) | 41 | if (path) |
42 | html(")"); | 42 | html(")"); |
43 | 43 | ||
44 | html(" <a href='"); | 44 | html(" <a href='"); |
45 | html_attr(cgit_pageurl(cgit_query_repo, "blob", | 45 | html_attr(cgit_pageurl(cgit_query_repo, "blob", |
46 | fmt("id=%s&path=%s", | 46 | fmt("id=%s&path=%s", |
47 | hex, | 47 | hex, |
48 | path))); | 48 | path))); |
49 | html("'>download</a>"); | 49 | html("'>download</a>"); |
50 | html("</th></tr>\n"); | 50 | html("</th></tr>\n"); |
51 | html("<tr><td class='blob'>\n"); | 51 | html("<tr><td class='blob'>\n"); |
52 | html_txt(buf); | 52 | html_txt(buf); |
53 | html("\n</td></tr>\n"); | 53 | html("\n</td></tr>\n"); |
54 | html("</table>\n"); | 54 | html("</table>\n"); |
55 | } | 55 | } |