accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [1/6] accumulo git commit: ACCUMULO-4590 Use JSON.parse instead of eval
Date Wed, 22 Feb 2017 19:23:28 GMT
Repository: accumulo
Updated Branches:
  refs/heads/1.7 a9bf10fff -> c3a0d1d5e
  refs/heads/1.8 e86fabb87 -> 3430da2d6
  refs/heads/master 6494a829b -> d5d18dda3


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.7
Commit: c3a0d1d5e2f810ebcda346977009ab0fd1bd34f7
Parents: a9bf10f
Author: Christopher Tubbs <ctubbsii@apache.org>
Authored: Wed Feb 22 14:19:57 2017 -0500
Committer: Christopher Tubbs <ctubbsii@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])


Mime
View raw message