diff options
-rw-r--r-- | lib/utils/page.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/page.js b/lib/utils/page.js index 8adce8f..c79f237 100644 --- a/lib/utils/page.js +++ b/lib/utils/page.js @@ -132,7 +132,7 @@ function normalizeHtml(src, options) { // If image is external and ebook, then downlaod the images if (isExternal) { origin = src; - src = '/'+crc.crc32(origin).toString(16)+path.extname(origin); + src = '/'+crc.crc32(origin).toString(16)+path.extname(url.parse(origin).pathname); src = links.toAbsolute(src, options.base, options.output); isExternal = false; } |