aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Egilsson2009-10-19 14:10:16 +0000
committerEinar Egilsson2009-10-19 14:10:16 +0000
commitd200cd7c4bbb758e99ffdbe7ba062442ab3ea35f (patch)
tree6ac86c6bd3e56b90824f160a17a4ff25dec2178c
parent7b4c3a2cdbc0f5ac9d237f91164ee8fea8210095 (diff)
Got rid of eval statement
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@281 119bf307-c92d-0410-89bd-8f53e6181181
-rw-r--r--chrome/content/code/redirector.prototype.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/content/code/redirector.prototype.js b/chrome/content/code/redirector.prototype.js
index 991c289..1b32ad1 100644
--- a/chrome/content/code/redirector.prototype.js
+++ b/chrome/content/code/redirector.prototype.js
@@ -17,7 +17,7 @@ Redirector.prototype = {
//Here update checks are handled
if (version == 'undefined') { //Either a fresh install of Redirector, or first time install of v2.0
if (data) { //There is some data in redirects, we are upgrading from a previous version, need to upgrade data
- var tempList = eval(data);
+ var tempList = JSON.parse(data);
var arr;
var newArr = []
for each (arr in tempList) {