]> source.dussan.org Git - nextcloud-server.git/commitdiff
execute eval in global scope, addresses #5314 5354/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 9 Jun 2017 11:43:09 +0000 (13:43 +0200)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Mon, 12 Jun 2017 21:37:20 +0000 (23:37 +0200)
unsure whether this is properly supported everywhere, injection is not an
option for us

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
core/js/js.js

index 0a14acd4b6c52715fb9028a01d81b4c2a241e044..ffbe438dc9a00befe824ed0fd29380431ddc6334 100644 (file)
@@ -371,7 +371,7 @@ var OCP = {},
                                url: path,
                                cache: true,
                                success: function (content) {
-                                       eval(content);
+                                       window.eval(content);
                                        if(ready) {
                                                ready();
                                        }