You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ct...@apache.org on 2017/02/22 19:23:29 UTC

[2/6] accumulo git commit: ACCUMULO-4590 Use JSON.parse instead of eval

ACCUMULO-4590 Use JSON.parse instead of eval


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/c3a0d1d5
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/c3a0d1d5
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/c3a0d1d5

Branch: refs/heads/1.8
Commit: c3a0d1d5e2f810ebcda346977009ab0fd1bd34f7
Parents: a9bf10f
Author: Christopher Tubbs <ct...@apache.org>
Authored: Wed Feb 22 14:19:57 2017 -0500
Committer: Christopher Tubbs <ct...@apache.org>
Committed: Wed Feb 22 14:19:57 2017 -0500

----------------------------------------------------------------------
 server/monitor/src/main/resources/web/vis.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/c3a0d1d5/server/monitor/src/main/resources/web/vis.js
----------------------------------------------------------------------
diff --git a/server/monitor/src/main/resources/web/vis.js b/server/monitor/src/main/resources/web/vis.js
index c0f8b3f..8f2bc20 100644
--- a/server/monitor/src/main/resources/web/vis.js
+++ b/server/monitor/src/main/resources/web/vis.js
@@ -82,7 +82,7 @@ function handleNewData() {
     xmlReturned = true;
     return;
   }
-  var newstats = eval('(' + xmlhttp.responseText + ')');
+  var newstats = JSON.parse(xmlhttp.responseText);
   for (var i in newstats.servers) {
     for (var s in statNames) {
       if (statNames[s])