Skip to content

Commit

Permalink
Merge pull request #31971 from owncloud/jquery-tweak
Browse files Browse the repository at this point in the history
Disable jquery globalEval
  • Loading branch information
DeepDiver1975 authored Jul 3, 2018
2 parents b7b2f6e + c8ff0ef commit 27ac638
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/js/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/**
Expand Down

0 comments on commit 27ac638

Please sign in to comment.