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:
authorBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-09 01:03:07 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-09 01:03:07 +0400
commit41b9edb929a7d72bd13729108f402b5403c9b28c (patch)
tree7092b8a1cec218e739a68912e685d076f2fbb3d2 /plugins/CoreVisualizations
parentee2d113e2caa1ee1a3023c5a0db9044d011f2830 (diff)
Fix '% Visit' datatable column header bug by using |raw and make sure goal names are escaped in HtmlTable::setShowGoalsColumnsProperties.
Diffstat (limited to 'plugins/CoreVisualizations')
-rw-r--r--plugins/CoreVisualizations/Visualizations/HtmlTable.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/CoreVisualizations/Visualizations/HtmlTable.php b/plugins/CoreVisualizations/Visualizations/HtmlTable.php
index 64b2012e7f..9ffc3393eb 100644
--- a/plugins/CoreVisualizations/Visualizations/HtmlTable.php
+++ b/plugins/CoreVisualizations/Visualizations/HtmlTable.php
@@ -376,6 +376,7 @@ class HtmlTable extends DataTableVisualization
// get all goals to display info for
$allGoals = array();
+ // add the ecommerce goal if ecommerce is enabled for the site
if (Site::isEcommerceEnabledFor($idSite)) {
$ecommerceGoal = array(
'idgoal' => Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER,
@@ -385,8 +386,11 @@ class HtmlTable extends DataTableVisualization
$allGoals[$ecommerceGoal['idgoal']] = $ecommerceGoal;
}
+ // add the site's goals (and escape all goal names)
$siteGoals = Goals_API::getInstance()->getGoals($idSite);
foreach ($siteGoals as &$goal) {
+ $goal['name'] = Common::sanitizeInputValue($goal['name']);
+
$goal['quoted_name'] = '"' . $goal['name'] . '"';
$allGoals[$goal['idgoal']] = $goal;
}