diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-11-12 04:06:09 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-11-12 04:06:09 +0400 |
commit | 6abcb0db75324ff39f6557a1bcfcf90bc1a03d69 (patch) | |
tree | f50d9bad9150e92c6847835caf724f0cc51a6567 /core/Twig.php | |
parent | 84bc3eb3bba66823fe679db023b8b03cba9f0d10 (diff) |
refs #4256 by default escape notification message
Diffstat (limited to 'core/Twig.php')
-rw-r--r-- | core/Twig.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/Twig.php b/core/Twig.php index 389a579a63..01282ef35d 100644 --- a/core/Twig.php +++ b/core/Twig.php @@ -172,7 +172,13 @@ class Twig } $template .= '>'; - $template .= $message; + + if (!empty($options['raw'])) { + $template .= $message; + } else { + $template .= twig_escape_filter($twigEnv, $message, 'html'); + } + $template .= '</div>'; return $template; |