mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-12 04:08:29 +01:00
Don't read files textually, force explicit UTF8-decoding
This commit is contained in:
parent
3ee2110602
commit
3d36e2dc28
@ -22,7 +22,7 @@ loadWebsiteContent dir = do
|
||||
\_ -> readMarkdown "older-releases.md"
|
||||
return WebsiteContent {..}
|
||||
where
|
||||
readHtml fp = fmap (preEscapedToMarkup :: Text -> Html)
|
||||
readHtml fp = fmap (preEscapedToMarkup . decodeUtf8 :: ByteString -> Html)
|
||||
$ readFile $ dir </> fp
|
||||
readMarkdown fp = fmap (markdown def
|
||||
{ msXssProtect = False
|
||||
|
||||
Loading…
Reference in New Issue
Block a user