]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-commit.c
html: fix handling of null byte
[ps-cgit] / ui-commit.c
index 948118c468d14b4f1f1311685d763cc7be5f3469..078723756a6197051d8dffa3bab8d19b85a6e8f7 100644 (file)
@@ -39,10 +39,11 @@ void cgit_print_commit(char *hex, const char *prefix)
        }
        info = cgit_parse_commit(commit);
 
-       format_display_notes(&oid, &notes, PAGE_ENCODING, 0);
+       format_display_notes(&oid, &notes, PAGE_ENCODING, 1);
 
        load_ref_decorations(NULL, DECORATE_FULL_REFS);
 
+       ctx.page.title = fmtalloc("%s - %s", info->subject, ctx.page.title);
        cgit_print_layout_start();
        cgit_print_diff_ctrls();
        html("<table summary='commit info' class='commit-info'>\n");