mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
...
This commit is contained in:
parent
5a33e7a5c6
commit
557e96cbdf
@ -941,7 +941,7 @@ class BrowseServer(object):
|
||||
raise cherrypy.HTTPError(404, 'This library has no books')
|
||||
ans = self.browse_render_details(book_id, add_random_button=True, add_title=True)
|
||||
return self.browse_template('').format(
|
||||
title=self.db.title(book_id, index_is_id=True), script='book();', main=ans)
|
||||
title=prepare_string_for_xml(self.db.title(book_id, index_is_id=True)), script='book();', main=ans)
|
||||
|
||||
@Endpoint()
|
||||
def browse_book(self, id=None, category_sort=None):
|
||||
@ -952,7 +952,7 @@ class BrowseServer(object):
|
||||
|
||||
ans = self.browse_render_details(id_, add_title=True)
|
||||
return self.browse_template('').format(
|
||||
title=self.db.title(id_, index_is_id=True), script='book();', main=ans)
|
||||
title=prepare_string_for_xml(self.db.title(id_, index_is_id=True)), script='book();', main=ans)
|
||||
|
||||
# }}}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user