[FW][FIX] web/lib: backport jquery bugfixes

opw-2793379

closes odoo/odoo#86416

X-original-commit: 0dd7c78b06726543825008a48d3dc004d2af4557
This commit is contained in:
Xavier Morel
2022-03-15 07:56:28 +01:00
parent cd89f9b66f
commit 8045d656c8
2 changed files with 2 additions and 1 deletions
@@ -468,6 +468,7 @@
coerce_types = { 'true': !0, 'false': !1, 'null': null };
// Iterate over all name=value pairs.
if (params.indexOf('__proto__') !== -1) { return obj; }
$.each( params.replace( /\+/g, ' ' ).split( '&' ), function(j,v){
var param = v.split( '=' ),
key = decode( param[0] ),
+1 -1
View File
@@ -262,7 +262,7 @@ jQuery.extend = jQuery.fn.extend = function() {
copy = options[ name ];
// Prevent never-ending loop
if ( target === copy ) {
if ( name === '__proto__' || target === copy ) {
continue;
}