]> gitweb.ps.run Git - ps-cgit/commitdiff
ui-plain.c: fix html and links generated by print_dir() and print_dir_entry()
authorLars Hjemli <hjemli@gmail.com>
Sun, 12 Jun 2011 20:49:35 +0000 (20:49 +0000)
committerLars Hjemli <hjemli@gmail.com>
Sun, 12 Jun 2011 21:21:30 +0000 (21:21 +0000)
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>

No differences found