Add html.escape on URLs in logger/html.py

This commit is contained in:
Chris Mayo 2020-06-05 16:59:46 +01:00
parent eeb5fa48ca
commit 9108afeee5

View file

@ -194,7 +194,7 @@ class HtmlLogger(_Logger):
"<tr><td>"
+ self.part("parenturl")
+ '</td><td><a target="top" href="'
+ url_data.parent_url
+ html.escape(url_data.parent_url)
+ '">'
+ html.escape(url_data.parent_url)
+ "</a>"
@ -231,7 +231,7 @@ class HtmlLogger(_Logger):
+ self.part("realurl")
+ "</td><td>"
+ '<a target="top" href="'
+ url_data.url
+ html.escape(url_data.url)
+ '">'
+ html.escape(url_data.url)
+ "</a></td></tr>"