about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2013-04-07 14:03:47 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2013-04-08 16:10:11 +0200
commitd2e20e38141c882e46eaa77f172fc2ae37a19d3b (patch)
tree1a1b7ee0bc3c0d6eb9c82f083866d6cfc56af491 /tests
parenthtml.c: add various strbuf and varadic helpers (diff)
downloadcgit-pink-d2e20e38141c882e46eaa77f172fc2ae37a19d3b.tar.gz
cgit-pink-d2e20e38141c882e46eaa77f172fc2ae37a19d3b.zip
shared.c: add strbuf_ensure_end
This is a small helper so that we can easily ensure that a strbuf ends
with the specified character.

Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
n='3' class='logmsg'> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> 2018-08-03clone: fix directory traversalJason A. Donenfeld This was introduced in the initial version of this code, way back when in 2008. $ curl http://127.0.0.1/cgit/repo/objects/?path=../../../../../../../../../etc/passwd root:x:0:0:root:/root:/bin/sh ... Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Reported-by: Jann Horn <jannh@google.com> 2018-08-03config: record repo.snapshot-prefix in the per-repo configKonstantin Ryabitsev