Skip to content

Commit 57cf4ad

Browse files
jkreiledergitster
authored andcommitted
gitweb: Output valid utf8 in git_blame_common('data')
Otherwise when javascript-actions are enabled gitweb shown broken author names in the tooltips on blame pages ('blame_incremental' view). Signed-off-by: Jürgen Kreileder <[email protected]> Acked-by: Jakub Narębski <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5d79105 commit 57cf4ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gitweb/gitweb.perl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6108,7 +6108,9 @@ sub git_blame_common {
61086108
-type=>"text/plain", -charset => "utf-8",
61096109
-status=> "200 OK");
61106110
local $| = 1; # output autoflush
6111-
print while <$fd>;
6111+
while (my $line = <$fd>) {
6112+
print to_utf8($line);
6113+
}
61126114
close $fd
61136115
or print "ERROR $!\n";
61146116

0 commit comments

Comments
 (0)