Hello,
is there a way to replace eval function in MediaAccess.php (line 375) with another one:
data = eval("(" + (data.indexOf('{') < 0 ? '{' + data + '}' : data) + ")");
since it fails in Theme-Check plugin so I can’t proceed with submitting the theme.
Thanks!
-
This topic was modified 5 months, 2 weeks ago by
denoizzed.
I will see what i can do for it .. but usually i never use eval unless i absolutely have to.
Hey Dimas,
replacing this line with
if( data.indexOf('{') < 0 ){
data ='{' + data + '}';
}
data=data.replace('"',"'");
data=data.replace('{','{\"');
data=data.replace('}','\"}');
data=data.replace(':','\":\"');
data=data.replace("'","");
data = jQuery.parseJSON(data);
seems to do the trick.
Recent Comments