Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Keep a readme whole past a NUL byte
cgit takes filter output through a C string sink that stops at the first NUL, so a readme holding one lost everything after it. Each NUL now shows as U+FFFD, as a browser would show it.
-rw-r--r--custom/extensions/about-render.lua22
-rw-r--r--tests/extensions/test-about-render.lua11
2 files changed, 25 insertions, 8 deletions