diff options
author | sgiehl <stefan@piwik.org> | 2015-12-25 23:25:54 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2015-12-25 23:25:54 +0300 |
commit | 4b8ee0ef51d115dfa4d5520ccab0c29010db6f71 (patch) | |
tree | eb06578fa5b34af9e25e61ce1762fa3ac2d486d1 /plugins/CoreVisualizations/Visualizations | |
parent | e6027273700f271199918d67d670403c17dbec30 (diff) |
fixes escaping in tag clouds
Diffstat (limited to 'plugins/CoreVisualizations/Visualizations')
-rw-r--r-- | plugins/CoreVisualizations/Visualizations/Cloud.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/CoreVisualizations/Visualizations/Cloud.php b/plugins/CoreVisualizations/Visualizations/Cloud.php index d5a317da25..502411e74c 100644 --- a/plugins/CoreVisualizations/Visualizations/Cloud.php +++ b/plugins/CoreVisualizations/Visualizations/Cloud.php @@ -174,6 +174,8 @@ class Cloud extends Visualization */ private function truncateWordIfNeeded($word) { + $word = Common::unsanitizeInputValue($word); + if (Common::mb_strlen($word) > $this->truncatingLimit) { return Common::mb_substr($word, 0, $this->truncatingLimit - 3) . '...'; } |