diff options
author | sgiehl <stefan@matomo.org> | 2022-08-29 11:15:59 +0300 |
---|---|---|
committer | sgiehl <stefan@matomo.org> | 2022-08-29 11:15:59 +0300 |
commit | 72505769a74b1a4137a89d5e1dec43033f7bbb90 (patch) | |
tree | 4e3d28e60ad0ff3c6eb52f38ce6cbfdb7b5ee087 | |
parent | bb13f5ca2cc5473e9139b160ce2e9bd28d6961a3 (diff) |
correctly esacpe label in row evolution popoverescapeattr
-rw-r--r-- | plugins/CoreHome/DataTableRowAction/RowEvolution.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreHome/DataTableRowAction/RowEvolution.php b/plugins/CoreHome/DataTableRowAction/RowEvolution.php index 7a969f751e..e9220d2a89 100644 --- a/plugins/CoreHome/DataTableRowAction/RowEvolution.php +++ b/plugins/CoreHome/DataTableRowAction/RowEvolution.php @@ -144,9 +144,9 @@ class RowEvolution $popoverTitle = ''; if ($this->rowLabel) { $icon = $this->rowIcon ? '<img height="16px" src="' . $this->rowIcon . '" alt="">' : ''; - $rowLabel = str_replace('/', '<wbr>/', str_replace('&', '<wbr>&', $this->rowLabel )); + $rowLabel = str_replace('/', '<wbr>/', str_replace('&', '<wbr>&', Common::fixLbrace($this->rowLabel) )); $metricsText = sprintf(Piwik::translate('RowEvolution_MetricsFor'), $this->dimension . ': ' . $icon . ' ' . $rowLabel); - $popoverTitle = $icon . ' ' . $this->rowLabel; + $popoverTitle = $icon . ' ' . Common::fixLbrace($this->rowLabel); } $view->availableMetricsText = $metricsText; |