diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-05-10 11:37:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-10 11:37:06 -0500 |
commit | affa8d07cab3617e7f2101e3b81a212fa86ab832 (patch) | |
tree | 15e48dc78a7911748e485236f94dcb1a11cb78a0 | |
parent | f95f1b20f1048f59a5cbf670daaea03da8b05baa (diff) | |
parent | 93994b1320960eac4d24999310d8ff0a2063975c (diff) | |
download | nextcloud-server-affa8d07cab3617e7f2101e3b81a212fa86ab832.tar.gz nextcloud-server-affa8d07cab3617e7f2101e3b81a212fa86ab832.zip |
Merge pull request #4762 from nextcloud/add-unsafe-global-eval-fn
Add fallback to jQuery.fn.globalEval
-rw-r--r-- | apps/updatenotification/js/admin.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/updatenotification/js/admin.js b/apps/updatenotification/js/admin.js index 589765348af..93b42295a23 100644 --- a/apps/updatenotification/js/admin.js +++ b/apps/updatenotification/js/admin.js @@ -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'); } |