소스 검색

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