Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2013-11-12 04:06:09 +0400
committerThomas Steur <thomas.steur@gmail.com>2013-11-12 04:06:09 +0400
commit6abcb0db75324ff39f6557a1bcfcf90bc1a03d69 (patch)
treef50d9bad9150e92c6847835caf724f0cc51a6567 /core/Twig.php
parent84bc3eb3bba66823fe679db023b8b03cba9f0d10 (diff)
refs #4256 by default escape notification message
Diffstat (limited to 'core/Twig.php')
-rw-r--r--core/Twig.php8
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;