-
7 Apr 2009 2:12 PM #1
[FIXED][3.0] JSON usage in JsonReader and TreeLoader
[FIXED][3.0] JSON usage in JsonReader and TreeLoader
I think JsonReader.read ought to use the Ext JSON functionality rather than calling eval.
Original:
Proposed:PHP Code:read : function(response){
var json = response.responseText;
var o = eval("("+json+")");
if(!o) {
throw {message: "JsonReader.read: Json object not found"};
}
return this.readRecords(o);
}
Same thing in TreeLoader.processResponse.PHP Code:read : function(response){
var o = Ext.decode(response.responseText);
if(!o) {
throw {message: "JsonReader.read: Json object not found"};
}
return this.readRecords(o);
-
7 Apr 2009 3:40 PM #2
Fixed in SVN.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote