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:
authorStefan Giehl <stefan@piwik.org>2017-05-08 11:41:09 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2017-05-08 11:41:09 +0300
commit42d1f237d5f76636052be26b38310f13c1a78df2 (patch)
tree1fa1e25832e2564b0285d68af1b29e365ff447cb /plugins/ScheduledReports/API.php
parent7020b47f9535f91a26923c2e6d280fbafa67c93c (diff)
unsantisize report description to prevent double encoding (#11642)
Diffstat (limited to 'plugins/ScheduledReports/API.php')
-rw-r--r--plugins/ScheduledReports/API.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ScheduledReports/API.php b/plugins/ScheduledReports/API.php
index 35b3f078b0..7674634120 100644
--- a/plugins/ScheduledReports/API.php
+++ b/plugins/ScheduledReports/API.php
@@ -478,7 +478,7 @@ class API extends \Piwik\Plugin\API
$reportRenderer->setReport($report);
// render report
- $description = str_replace(array("\r", "\n"), ' ', $report['description']);
+ $description = str_replace(array("\r", "\n"), ' ', Common::unsanitizeInputValue($report['description']));
list($reportSubject, $reportTitle) = self::getReportSubjectAndReportTitle(Common::unsanitizeInputValue(Site::getNameFor($idSite)), $report['reports']);