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>2015-06-24 07:13:04 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-06-26 00:32:34 +0300
commita1fc087234a7a035e1339c6b7f42b5342d970f4a (patch)
treed5db37fbdafb404392f2e20ce28686d53118ca78 /plugins/Login/Controller.php
parentc2dd00106a0230c5e5667cb5ce7667b6bcc39ac9 (diff)
Make sure to escape error messages
Diffstat (limited to 'plugins/Login/Controller.php')
-rw-r--r--plugins/Login/Controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Login/Controller.php b/plugins/Login/Controller.php
index 287d0202d9..454a0d6796 100644
--- a/plugins/Login/Controller.php
+++ b/plugins/Login/Controller.php
@@ -175,7 +175,7 @@ class Controller extends \Piwik\Plugin\Controller
<p><a href="%s">%s</a></p>
</div>',
Piwik::translate('General_Error'),
- $errorMessage,
+ htmlentities($errorMessage, Common::HTML_ENCODING_QUOTE_STYLE, 'UTF-8', $doubleEncode = false),
'index.php?module=Login',
Piwik::translate('Login_LogIn')
);