From 8af820ef49f16ed1b2c343d6c9043e2bc0535379 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 21 Jan 2009 13:20:02 -0800 Subject: [PATCH] Fix #1658 (Not able to view some PDF files) --- src/calibre/library/static/gui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/static/gui.js b/src/calibre/library/static/gui.js index 17f6f7f8fd..c158f3a46a 100644 --- a/src/calibre/library/static/gui.js +++ b/src/calibre/library/static/gui.js @@ -40,7 +40,7 @@ function create_table_headers() { function format_url(format, id, title) { - return 'get/'+format.toLowerCase() + '/'+title + '_' + id+'.'+format.toLowerCase(); + return 'get/'+format.toLowerCase() + '/'+title.replace('#', '') + '_' + id+'.'+format.toLowerCase(); } function render_book(book) {