git.iko.soy/typeable/pandoc
on master help sign in
Shared.fetchItem: unescape URI encoding before reading local file.

Close #1427.

commitb80577b395cc2ea9c3b50910f7e0e77975112613 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 15 Jul 2014, 12:17 (12 years ago) parent5883899
1 file changed+1−1
src/Text/Pandoc/Shared.hs+1−1
src/Text/Pandoc/Shared.hs+1−1
@@ -772,7 +772,7 @@ fetchItem sourceURL s
772772 let mime = case takeExtension s of
773773 ".gz" -> getMimeType $ dropExtension s
774774 x -> getMimeType x
775− cont <- BS.readFile s
775+ cont <- BS.readFile $ unEscapeString s
776776 return (cont, mime)
777777
778778-- | Read from a URL and return raw data and maybe mime type.