From c8ff0ef2cb42d9ff86f164ac05551326a049cbe7 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 3 Jul 2018 19:25:34 +0200 Subject: [PATCH] Disable jquery globalEval --- core/js/js.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/js/js.js b/core/js/js.js index 3525f9413262..e28299ddc860 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1663,6 +1663,15 @@ function initCore() { } } +/** + * Disable the use of globalEval in jQuery 2.1.4. + * This is required for API compatibility, yet should not be available all the + * same. + * + * @see https://github.com/jquery/jquery/issues/2432 for further details. + */ +$.fn.globalEval = function(){}; + $(document).ready(initCore); /**