This commit is contained in:
Kovid Goyal 2013-10-31 10:16:13 +05:30
parent 5a33e7a5c6
commit 557e96cbdf

View File

@ -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)
# }}}