From 57d8dcd574cb8ec05388474d1ec7918efe227acd Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Sat, 21 Sep 2019 12:01:26 +0200 Subject: [PATCH] WEBCAL: Wrong web calendar title on home page Fixes #11354 This PR solves the possibility to have ">", "<" in the title --- gramps/plugins/webreport/webcal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/webreport/webcal.py b/gramps/plugins/webreport/webcal.py index 7b5a703dc..ea4942325 100644 --- a/gramps/plugins/webreport/webcal.py +++ b/gramps/plugins/webreport/webcal.py @@ -126,7 +126,7 @@ class WebCalReport(Report): self._ = self.rlocale.translation.sgettext self.html_dir = mgobn('target') - self.title_text = mgobn('title') + self.title_text = html_escape(mgobn('title')) filter_option = options.menu.get_option_by_name('filter') self.filter = filter_option.get_filter() self.name_format = mgobn('name_format') @@ -1598,7 +1598,7 @@ class WebCalReport(Report): output_file = self.create_file('index', "") # page title - title = self._("My Family Calendar") + title = self.title_text nr_up = 0