summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorLibravatar Yasushi SHOJI <yashi@atmark-techno.com>2006-09-27 12:04:10 +0900
committerLibravatar Junio C Hamano <junkio@cox.net>2006-09-27 00:08:51 -0700
commit4a0641b7cf833644b286b56bb57d66b5538e4418 (patch)
treec33c6c871caafe29e5b2bc1dee1d79e64f4f3205 /gitweb
parentgit-svn: Fix fetch --no-ignore-externals with GIT_SVN_NO_LIB=1 (diff)
downloadtgif-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-xgitweb/gitweb.perl2
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"},