diff options
author | Yasushi SHOJI <yashi@atmark-techno.com> | 2006-09-27 12:04:10 +0900 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-27 00:08:51 -0700 |
commit | 4a0641b7cf833644b286b56bb57d66b5538e4418 (patch) | |
tree | c33c6c871caafe29e5b2bc1dee1d79e64f4f3205 /gitweb | |
parent | git-svn: Fix fetch --no-ignore-externals with GIT_SVN_NO_LIB=1 (diff) | |
download | tgif-4a0641b7cf833644b286b56bb57d66b5538e4418.tar.xz |
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 66be619332..597d29f22f 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -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"}, |