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@matomo.org>2022-08-31 10:31:07 +0300
committerGitHub <noreply@github.com>2022-08-31 10:31:07 +0300
commit3887d4fe346213e9114c2e2f4dd0ed5f29b2cd55 (patch)
tree3e191bd39f969b3df08eff6add5d4b0e0238fed2 /plugins/Dashboard
parent598c7e5af8b196df1ef0dc78c196a4e0968b26aa (diff)
Ensure to properly escape widgetid attribute (#19685)
* Ensure to properly escape widgetid attribute * correctly esacpe label in row evolution popover
Diffstat (limited to 'plugins/Dashboard')
-rw-r--r--plugins/Dashboard/javascripts/dashboardObject.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Dashboard/javascripts/dashboardObject.js b/plugins/Dashboard/javascripts/dashboardObject.js
index de9455c372..95eabe0582 100644
--- a/plugins/Dashboard/javascripts/dashboardObject.js
+++ b/plugins/Dashboard/javascripts/dashboardObject.js
@@ -478,7 +478,7 @@
return;
}
- var $widgetContent = $('<div class="sortable" widgetId="' + uniqueId + '"></div>');
+ var $widgetContent = $('<div class="sortable"></div>').attr('widgetId', uniqueId);
if (addWidgetOnTop) {
$('> .col:nth-child(' + columnNumber + ')', dashboardElement).prepend($widgetContent);