• R/O
  • HTTP
  • SSH
  • HTTPS

newslash: Commit

newslash


Commit MetaInfo

Revision8a9f39ce5ddb140452f4c75f2c2fbafa3ff2d0f5 (tree)
Time2017-11-24 20:06:18
Authorhylom <hylom@user...>
Commiterhylom

Log Message

  • Plugin::QUasiStaticContent: use utf-8 encoding when load contents

Change Summary

Incremental Difference

--- a/src/newslash_web/lib/Newslash/Plugin/QuasiStaticContent.pm
+++ b/src/newslash_web/lib/Newslash/Plugin/QuasiStaticContent.pm
@@ -50,7 +50,7 @@ sub _generate {
5050 return;
5151 }
5252 my $fh = FileHandle->new;
53- if ($fh->open($pathname, "r")) {
53+ if ($fh->open($pathname, "<:utf8")) {
5454 $content = do { local $/; <$fh> };
5555 $fh->close;
5656 }
Show on old repository browser