Преглед на файлове

[TwigBundle] fixed XSS in the exception template

Fabien Potencier преди 14 години
родител
ревизия
5d9bd6da4f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Symfony/Bundle/TwigBundle/Resources/views/Exception/exception.html.twig

+ 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>