From af8802222f23d753b65e6ea1724da8e1bfe521ff Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 3 Jul 2017 10:23:14 +0530 Subject: [PATCH] Dont use quoted slashes when downloading book files via XHR Quoted slashes are technically illegal in URLs and various reverse proxies have issues with them. --- src/pyj/read_book/ui.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/read_book/ui.pyj b/src/pyj/read_book/ui.pyj index 7e1c248ded..ebdb8d4086 100644 --- a/src/pyj/read_book/ui.pyj +++ b/src/pyj/read_book/ui.pyj @@ -317,7 +317,7 @@ class ReadUI: for fname in files_left: if fname is not raster_cover_name: - start_download(fname, base_path + encodeURIComponent(fname)) + start_download(fname, base_path + encodeURIComponent(fname).replace(/%2[fF]/, '/')) def ensure_maths(self, proceed): self.db.get_mathjax_info(def(mathjax_info):