Fix UTF-8 mangling on patch and commitdiff_plain
[gitweb] / gitweb.cgi
index 93c848485f8f94917e2c7951732c64aede600bc2..5af873c02352cf67a25ef11e6a9301df0f19ee9e 100755 (executable)
@@ -4255,7 +4255,7 @@ sub git_end_subhead_html {
 }
 
 sub git_footer_html {
-       my $feed_class = 'rss_logo';
+       my $feed_class = 'feed_logo';
 
        print "<footer class=\"page_footer\">\n";
        if (defined $project) {
@@ -8059,12 +8059,12 @@ sub git_commitdiff {
 
        } elsif ($format eq 'plain') {
                local $/ = undef;
-               print <$fd>;
+               print to_utf8(<$fd>);
                close $fd
                        or print "Reading git-diff-tree failed\n";
        } elsif ($format eq 'patch') {
                local $/ = undef;
-               print <$fd>;
+               print to_utf8(<$fd>);
                close $fd
                        or print "Reading git-format-patch failed\n";
        }