-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) if (!buf) { cgit_print_error(fmt("Error reading object %s", hex)); return; } buf[size] = '\0'; html("<table class='list'>\n"); html("<tr class='nohover'><th class='left'>"); if (path) htmlf("%s (", 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&path=%s", hex, path))); html("'>download</a>"); html("</th></tr>\n"); html("<tr><td class='blob'>\n"); html_txt(buf); html("\n</td></tr>\n"); html("</table>\n"); } |