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.
This commit is contained in:
Kovid Goyal 2017-07-03 10:23:14 +05:30
parent ebe2dca11a
commit af8802222f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -317,7 +317,7 @@ class ReadUI:
for fname in files_left: for fname in files_left:
if fname is not raster_cover_name: 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): def ensure_maths(self, proceed):
self.db.get_mathjax_info(def(mathjax_info): self.db.get_mathjax_info(def(mathjax_info):