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-04-15 14:05:44 +0400
committerMichal Čihař <mcihar@suse.cz>2013-04-15 14:05:44 +0400
commit502165de66689e8c5f661d663395137809208a7d (patch)
treeee07ad9355bda115fbb93cd3adb64e958d4e73fd /js/server_status_queries.js
parent020a3e1ce401163b6000022a723748721823e67a (diff)
Explicitly define radix for parseInt
This prevents unexpected behavior when parsing string like 033, which would be treated as octal.
Diffstat (limited to 'js/server_status_queries.js')
-rw-r--r--js/server_status_queries.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/server_status_queries.js b/js/server_status_queries.js
index 3faeec4510..e17675711c 100644
--- a/js/server_status_queries.js
+++ b/js/server_status_queries.js
@@ -17,7 +17,7 @@ AJAX.registerOnload('server_status_queries.js', function() {
var cdata = [];
try {
$.each(jQuery.parseJSON($('#serverstatusquerieschart_data').text()), function(key, value) {
- cdata.push([key, parseInt(value)]);
+ cdata.push([key, parseInt(value, 10)]);
});
$('#serverstatusquerieschart').data(
'queryPieChart',