about summary refs log tree commit diff
path: root/filters/syntax-highlighting.sh
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2011-06-12 20:49:35 +0000
committerLars Hjemli <hjemli@gmail.com>2011-06-12 21:21:30 +0000
commit7f88d20823ad9d375900657334bc27793860f6ee (patch)
treec9f9a0048cae2d94e97138e9ea82e2a103b215ad /filters/syntax-highlighting.sh
parentscan-tree.c: avoid memory leak (diff)
downloadcgit-pink-7f88d20823ad9d375900657334bc27793860f6ee.tar.gz
cgit-pink-7f88d20823ad9d375900657334bc27793860f6ee.zip
ui-plain.c: fix html and links generated by print_dir() and print_dir_entry()
This patch fixes the following issues:
* the base argument usually isn't zero-terminated, so printing base
  without considering baselen will usually generate random garbage
* when the current url represents a directory but doesn't end in a slash,
  relative urls would be incorrect
* using unescaped paths allows XSS

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
7ba9dc8fb723a07a6d0a4bd80dd&follow=1'>Add urlOpenMatchJune McEnroe 2018-09-10Depend on man.sh for chroot.tar targetJune McEnroe 2018-09-10Set LESSSECURE=1 in man.shJune McEnroe 2018-09-10Add /man commandJune McEnroe 2018-09-10Install man page in chrootJune McEnroe 2018-09-10Install man pageJune McEnroe 2018-09-10Split keys into subsections and document colorsJune McEnroe 2018-09-10Add "blank" lines to chatte.1June McEnroe 2018-09-10Document key bindings in chatte.1June McEnroe 2018-09-08Document slash commands in chatte.1June McEnroe