Explorar o código

[TwigBundle] fixed XSS in the exception template

Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
5d9bd6da4f

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

@@ -12,7 +12,7 @@
                 </div>
 
                 <h1>
-                    {{ exception.message|replace({"\n": '<br />'})|format_file_from_text }}
+                    {{ exception.message|e|replace({"\n": '<br />'})|format_file_from_text }}
                 </h1>
 
                 <div>