From: Lars Hjemli Date: Sun, 12 Jun 2011 20:49:35 +0000 (+0000) Subject: ui-plain.c: fix html and links generated by print_dir() and print_dir_entry() X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/7f88d20823ad9d375900657334bc27793860f6ee?ds=inline;hp=7f88d20823ad9d375900657334bc27793860f6ee 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 ---