Override the globalEval to mitigate potential execution of script tag

This commit is contained in:
Hadi Nategh 2017-10-27 17:42:04 +02:00
parent 12dbfca137
commit f42801236a

View File

@ -157,6 +157,13 @@
var include = JSON.parse(egw_script.getAttribute('data-include'));
window.egw_LAB.script(include).wait(function()
{
// We need to override the globalEval to mitigate potential execution of
// script tag. This issue is relevant to jQuery 1.12.4, we need to check
// if we still need this after upgrading jQuery.
jQuery.extend({
globalEval:function(data){}
});
// call egw.link_handler, if attr specified
var egw_redirect = egw_script.getAttribute('data-egw-redirect');
if (egw_redirect)