Skip to content

Commit 5d9bd6d

Browse files
committed
[TwigBundle] fixed XSS in the exception template
1 parent 6419456 commit 5d9bd6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/TwigBundle/Resources/views/Exception/exception.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</div>
1313

1414
<h1>
15-
{{ exception.message|replace({"\n": '<br />'})|format_file_from_text }}
15+
{{ exception.message|e|replace({"\n": '<br />'})|format_file_from_text }}
1616
</h1>
1717

1818
<div>

0 commit comments

Comments
 (0)