From: Jakub Narebski Date: Sat, 16 Feb 2008 22:07:46 +0000 (+0100) Subject: gitweb: Fix displaying unchopped argument in chop_and_escape_str X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/fb80fbe55d390ada4e110f039b13b9d5588a87eabe86e83158f715d7dcded093?hp=fb80fbe55d390ada4e110f039b13b9d5588a87eabe86e83158f715d7dcded093 gitweb: Fix displaying unchopped argument in chop_and_escape_str Do not use esc_html to escape [title] _attribute_ of a HTML element, and quote unprintable characters. Replace unprintable characters by '?' and use CGI method to generate HTML element and do the escaping. This caused bug noticed by Martin Koegler, Message-ID: that for bad commit encoding in author name, the title attribute (here to show full, not shortened name) had embedded HTML code in it, result of quoting unprintable characters the gitweb/HTML way. This of course broke the HTML, causing page being not displayed in XML validating web browsers. Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano ---