From d200cd7c4bbb758e99ffdbe7ba062442ab3ea35f Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Mon, 19 Oct 2009 14:10:16 +0000 Subject: Got rid of eval statement git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@281 119bf307-c92d-0410-89bd-8f53e6181181 --- chrome/content/code/redirector.prototype.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/content/code') 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) { -- cgit v1.2.3-70-g09d2