Merge pull request #4762 from nextcloud/add-unsafe-global-eval-fn

Add fallback to jQuery.fn.globalEval
This commit is contained in:
Morris Jobke 2017-05-10 11:37:06 -05:00 committed by GitHub
commit affa8d07ca

View file

@ -32,6 +32,13 @@ $(document).ready(function(){
var body = $('body');
$('head').remove();
body.html(data);
// Eval the script elements in the response
var dom = $(data);
dom.filter('script').each(function() {
eval(this.text || this.textContent || this.innerHTML || '');
});
body.removeAttr('id');
body.attr('id', 'body-settings');
}