summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-05-10 13:03:15 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-05-10 13:03:15 +0200
commit93994b1320960eac4d24999310d8ff0a2063975c (patch)
treec845f25c3a6de4949fcd29af6094c0c7fc80b015 /apps
parentb9bcc819bdad551000981200d7d8d72f5df70778 (diff)
downloadnextcloud-server-93994b1320960eac4d24999310d8ff0a2063975c.tar.gz
nextcloud-server-93994b1320960eac4d24999310d8ff0a2063975c.zip
Eval script elemtents in HTML body response
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps')
-rw-r--r--apps/updatenotification/js/admin.js7
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');
}