From a574638cad97c628ba6524a967d8e7a98d688267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=83=E9=9A=A8=E7=B7=A3=E5=8B=95?= Date: Thu, 11 Sep 2025 21:00:40 +0800 Subject: [PATCH] Fix critical bugs in ObjectUtil.equals() and filterInbounds() --- web/assets/js/util/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/assets/js/util/index.js b/web/assets/js/util/index.js index 83497b94..7270096f 100644 --- a/web/assets/js/util/index.js +++ b/web/assets/js/util/index.js @@ -326,6 +326,14 @@ class ObjectUtil { return false; } } + for (const key in b) { + if (!b.hasOwnProperty(key)) { + continue; + } + if (!a.hasOwnProperty(key)) { + return false; + } + } return true; } }