Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <mcihar@suse.cz>2013-01-15 12:10:48 +0400
committerMichal Čihař <mcihar@suse.cz>2013-01-15 12:11:07 +0400
commit7e968cf30e811fd2dc51ae754907d01049468505 (patch)
treef9cc7aeba89d14ec544278c62bd16acaba55aa36 /js/tbl_chart.js
parentae2a59f02d42ee1bf3c84f6c695194468534bfe6 (diff)
Escape HTML in titles of table charts
Diffstat (limited to 'js/tbl_chart.js')
-rw-r--r--js/tbl_chart.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/tbl_chart.js b/js/tbl_chart.js
index 6e395e72c1..f139ca06e7 100644
--- a/js/tbl_chart.js
+++ b/js/tbl_chart.js
@@ -53,6 +53,7 @@ $(document).ready(function() {
},
title: {
text: $('input[name="chartTitle"]').attr('value')
+ escapeHtml: true,
//margin:20
},
legend: {
@@ -245,7 +246,8 @@ function PMA_queryChart(data, passedSettings, passedNonJqplotSettings)
var settings = {
title: {
- text: ''
+ text: ''
+ escapeHtml: true,
//margin:20
}
};
@@ -279,7 +281,7 @@ function PMA_queryChart(data, passedSettings, passedNonJqplotSettings)
if (passedNonJqplotSettings.chart.type == 'spline') {
settings.seriesDefaults = {
rendererOptions: {
- smooth: true
+ smooth: true
}
};
}