mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
PDF renderer: Properly escape HTML answer fields (#1473)
This commit is contained in:
committed by
Raphael Michel
parent
9ed49fb379
commit
f473439f77
@@ -288,7 +288,7 @@ def variables_from_questions(sender, *args, **kwargs):
|
|||||||
if not a:
|
if not a:
|
||||||
return ""
|
return ""
|
||||||
else:
|
else:
|
||||||
return str(a).replace("\n", "<br/>\n")
|
return escape(str(a)).replace("\n", "<br/>\n")
|
||||||
|
|
||||||
d = {}
|
d = {}
|
||||||
for q in sender.questions.all():
|
for q in sender.questions.all():
|
||||||
|
|||||||
Reference in New Issue
Block a user