mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:04:12 +02:00
...
This commit is contained in:
parent
5a33e7a5c6
commit
557e96cbdf
1 changed files with 2 additions and 2 deletions
|
|
@ -941,7 +941,7 @@ def browse_random(self, *args, **kwargs):
|
|||
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 @@ def browse_book(self, id=None, category_sort=None):
|
|||
|
||||
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…
Reference in a new issue