X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/1b2c33db144b6b7efb1b35e2b36cddffc660f493537889bf6be9accd5f2f4ea3..762624fb840d8d182cc7c3820ea4715181a7cad1d78e4fe0f6356e58dcf8ee36:/gitweb.perl diff --git a/gitweb.perl b/gitweb.perl index 33a89d5..0dbca9d 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -6245,7 +6245,9 @@ sub git_blame_common { -type=>"text/plain", -charset => "utf-8", -status=> "200 OK"); local $| = 1; # output autoflush - print while <$fd>; + while (my $line = <$fd>) { + print to_utf8($line); + } close $fd or print "ERROR $!\n"; @@ -7864,11 +7866,12 @@ sub git_opml { -charset => 'utf-8', -content_disposition => 'inline; filename="opml.xml"'); + my $title = esc_html($site_name); print < - $site_name OPML Export + $title OPML Export