修复jQuery原型污染漏洞 ThinkGem

This commit is contained in:
thinkgem
2019-04-23 20:21:03 +08:00
parent 722029e555
commit 73ac352219

View File

@@ -211,7 +211,8 @@ jQuery.extend = jQuery.fn.extend = function() {
copy = options[ name ];
// Prevent never-ending loop
if ( target === copy ) {
// if ( target === copy ) {
if (name === "__proto__" || target === copy) { // 修复jQuery原型污染漏洞 ThinkGem
continue;
}