summaryrefslogtreecommitdiff
path: root/source/html/epub-doc.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-05-05 18:18:36 +0200
committerTor Andersson <tor.andersson@artifex.com>2015-05-05 20:02:20 +0200
commit8219259c39f19f45c2f094a6ba7930f940b1074a (patch)
treed6b654c99a91f119c66bd805d5ab28c0807d922f /source/html/epub-doc.c
parent3d81ce6e34e6216b4ec67deee50aab60097a52b0 (diff)
downloadmupdf-8219259c39f19f45c2f094a6ba7930f940b1074a.tar.xz
epub: Decode URL escapes in epub paths.
Diffstat (limited to 'source/html/epub-doc.c')
-rw-r--r--source/html/epub-doc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/html/epub-doc.c b/source/html/epub-doc.c
index 2ea9f298..e77770ac 100644
--- a/source/html/epub-doc.c
+++ b/source/html/epub-doc.c
@@ -164,7 +164,7 @@ path_from_idref(char *path, fz_xml *manifest, const char *base_uri, const char *
fz_strlcpy(path, base_uri, n);
fz_strlcat(path, "/", n);
fz_strlcat(path, rel_path, n);
- return fz_cleanname(path);
+ return fz_cleanname(fz_urldecode(path));
}
static epub_chapter *