resources: Also add jQuery Migrate to foreign-resources.yaml
[lhc/web/wiklou.git] / resources / lib / jquery / jquery-3.3.1.patch
1 diff --git a/resources/lib/jquery/jquery.js b/resources/lib/jquery/jquery.js
2 index 9b5206bcc6..34a5703d80 100644
3 --- a/resources/lib/jquery/jquery.js
4 +++ b/resources/lib/jquery/jquery.js
5 @@ -261,8 +261,9 @@ jQuery.extend = jQuery.fn.extend = function() {
6 src = target[ name ];
7 copy = options[ name ];
8
9 + // Prevent Object.prototype pollution
10 // Prevent never-ending loop
11 - if ( target === copy ) {
12 + if ( name === "__proto__" || target === copy ) {
13 continue;
14 }
15