WEBCAL: Wrong web calendar title on home page

Fixes #11354

This PR solves the possibility to have ">", "<" in the title
This commit is contained in:
SNoiraud 2019-09-21 12:01:26 +02:00 committed by Nick Hall
parent d5bb4da5a1
commit 57d8dcd574

View File

@ -126,7 +126,7 @@ class WebCalReport(Report):
self._ = self.rlocale.translation.sgettext self._ = self.rlocale.translation.sgettext
self.html_dir = mgobn('target') 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') filter_option = options.menu.get_option_by_name('filter')
self.filter = filter_option.get_filter() self.filter = filter_option.get_filter()
self.name_format = mgobn('name_format') self.name_format = mgobn('name_format')
@ -1598,7 +1598,7 @@ class WebCalReport(Report):
output_file = self.create_file('index', "") output_file = self.create_file('index', "")
# page title # page title
title = self._("My Family Calendar") title = self.title_text
nr_up = 0 nr_up = 0