X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=resources%2Flib%2Fjquery%2Fjquery.js;h=34a5703d80fb917d5e3af1a5e97b898e04f9788d;hp=9b5206bcc60781905d111863bdb6232d90490f33;hb=75e473005d666b1675404305aab154474216dce2;hpb=5de4402b5909f40fccb1fe6c1d1c9317da345c09 diff --git a/resources/lib/jquery/jquery.js b/resources/lib/jquery/jquery.js index 9b5206bcc6..34a5703d80 100644 --- a/resources/lib/jquery/jquery.js +++ b/resources/lib/jquery/jquery.js @@ -261,8 +261,9 @@ jQuery.extend = jQuery.fn.extend = function() { src = target[ name ]; copy = options[ name ]; + // Prevent Object.prototype pollution // Prevent never-ending loop - if ( target === copy ) { + if ( name === "__proto__" || target === copy ) { continue; }