Remove (unused, I believe) eval() calls in TinyMCE to avoid AMO flagging, though we'd have to do so on every update

This commit is contained in:
Dan Stillman 2009-11-13 06:43:59 +00:00
parent d245064f87
commit 7b8db1f09f
2 changed files with 5 additions and 17 deletions

View File

@ -836,7 +836,7 @@ tinymce.create('static tinymce.util.JSON', {
parse : function(s) { parse : function(s) {
try { try {
return eval('(' + s + ')'); throw ('evalremoved2');
} catch (ex) { } catch (ex) {
// Ignore // Ignore
} }
@ -6568,7 +6568,7 @@ window.tinymce.dom.Sizzle = Sizzle;
error : t.settings.error, error : t.settings.error,
async : false, async : false,
success : function(co) { success : function(co) {
t.eval(co); throw('evalremoved3');
} }
}); });
} else } else
@ -6617,9 +6617,9 @@ window.tinymce.dom.Sizzle = Sizzle;
// Evaluate script // Evaluate script
if (!w.execScript) { if (!w.execScript) {
try { try {
eval.call(w, co); throw('evalremoved1');
} catch (ex) { } catch (ex) {
eval(co, w); // Firefox 3.0a8 throw('evalremoved2');
} }
} else } else
w.execScript(co); // IE w.execScript(co); // IE
@ -6668,18 +6668,6 @@ window.tinymce.dom.Sizzle = Sizzle;
done(o); done(o);
allDone(); allDone();
}); });
/*
tinymce.util.XHR.send({
url : o.url,
error : t.settings.error,
success : function(co) {
t.eval(co);
done(o);
allDone();
}
});
*/
}; };
each(sc, function(o) { each(sc, function(o) {

View File

@ -86,7 +86,7 @@ tinyMCEPopup = {
executeOnLoad : function(s) { executeOnLoad : function(s) {
this.onInit.add(function() { this.onInit.add(function() {
eval(s); throw('evalremoved1');
}); });
}, },