mirror of
https://github.com/git/git.git
synced 2024-11-24 02:17:02 +08:00
gitweb: Decode long title for link tooltips
This is a simple one liner to decode long title string in perl's internal form to utf-8 for link tooltips. This is not crucial if the commit message is all in ASCII, however, if you decide to use other encoding, such as UTF-8, tooltips ain't readable any more. Signed-off-by: Yasushi SHOJI <yashi@atmark-techno.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
191414c025
commit
4a0641b7cf
@ -617,7 +617,7 @@ sub format_subject_html {
|
||||
|
||||
if (length($short) < length($long)) {
|
||||
return $cgi->a({-href => $href, -class => "list subject",
|
||||
-title => $long},
|
||||
-title => decode("utf8", $long, Encode::FB_DEFAULT)},
|
||||
esc_html($short) . $extra);
|
||||
} else {
|
||||
return $cgi->a({-href => $href, -class => "list subject"},
|
||||
|
Loading…
Reference in New Issue
Block a user