mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:03:52 +02:00
Added escape() to catalog title included in OPF metadata header to deal with potential inclusion of illegal HTML. Bug was caused by an ampersand in the title.
This commit is contained in:
parent
a3ee82fe3d
commit
8e3fa60d34
2 changed files with 3 additions and 3 deletions
|
|
@ -408,8 +408,8 @@ def run(self, path_to_output, opts, db, notification=DummyReporter()):
|
|||
|
||||
# Run ebook-convert
|
||||
from calibre.ebooks.conversion.plumber import Plumber
|
||||
plumber = Plumber(os.path.join(catalog.catalog_path,
|
||||
opts.basename + '.opf'), path_to_output, log, report_progress=notification,
|
||||
plumber = Plumber(os.path.join(catalog.catalog_path, opts.basename + '.opf'),
|
||||
path_to_output, log, report_progress=notification,
|
||||
abort_after_input_dump=False)
|
||||
plumber.merge_ui_recommendations(recommendations)
|
||||
plumber.run()
|
||||
|
|
|
|||
|
|
@ -3905,7 +3905,7 @@ def generate_opf(self):
|
|||
mtc = 0
|
||||
|
||||
titleTag = Tag(soup, "dc:title")
|
||||
titleTag.insert(0,self.opts.catalog_title)
|
||||
titleTag.insert(0,escape(self.opts.catalog_title))
|
||||
metadata.insert(mtc, titleTag)
|
||||
mtc += 1
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue