summaryrefslogtreecommitdiffabout
path: root/ui-stats.h
authorLars Hjemli <hjemli@gmail.com>2011-06-12 20:49:35 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2011-06-12 21:21:30 (UTC)
commit7f88d20823ad9d375900657334bc27793860f6ee (patch) (side-by-side diff)
treec9f9a0048cae2d94e97138e9ea82e2a103b215ad /ui-stats.h
parent2a8f553163d642e60092ced20631e1020581273b (diff)
downloadcgit-7f88d20823ad9d375900657334bc27793860f6ee.zip
cgit-7f88d20823ad9d375900657334bc27793860f6ee.tar.gz
cgit-7f88d20823ad9d375900657334bc27793860f6ee.tar.bz2
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 'ui-stats.h') (more/less context) (ignore whitespace changes)
0 files changed, 0 insertions, 0 deletions