forked from CGM_Public/pretix_original
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:
|
||||
return ""
|
||||
else:
|
||||
return str(a).replace("\n", "<br/>\n")
|
||||
return escape(str(a)).replace("\n", "<br/>\n")
|
||||
|
||||
d = {}
|
||||
for q in sender.questions.all():
|
||||
|
||||
Reference in New Issue
Block a user