From 1e46683819aebbaaffec3222a4e606bbea96aae3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 21 Jan 2009 13:28:04 -0800 Subject: [PATCH] IGN:Content server now properly encodes generated URIs based on book metadata --- 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 c158f3a46a..edefdbc5ef 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.replace('#', '') + '_' + id+'.'+format.toLowerCase(); + return 'get/'+format.toLowerCase() + '/'+encodeURIComponent(title) + '_' + id+'.'+format.toLowerCase(); } function render_book(book) {