[FIX] web/lib: backport jquery bugfixes

opw-2793379

closes odoo/odoo#90463

X-original-commit: 684e3fc983e91168dfaef8536fcd1f71ce7f7fdc
This commit is contained in:
Xavier Morel
2022-05-04 00:05:02 +02:00
parent 9ac8050de8
commit f0fe59dcf7
2 changed files with 2 additions and 1 deletions
@@ -520,6 +520,7 @@
// * Rinse & repeat.
for ( ; i <= keys_last; i++ ) {
key = keys[i] === '' ? cur.length : keys[i];
if ( key === "__proto__" || key === "prototype" || key === "constructor" ) break;
cur = cur[key] = i < keys_last
? cur[key] || ( keys[i+1] && isNaN( keys[i+1] ) ? {} : [] )
: val;
+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;
}