From 40b6d7707a8d7856eb97e00ea7c86052859ce162 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 11 Sep 2025 11:48:30 +0200 Subject: Fix critical bugs in ObjectUtil.equals() and filterInbounds() functions (#3451) * Initial plan * Fix ObjectUtil.equals asymmetric comparison and filterInbounds null pointer bugs Co-authored-by: MHSanaei <33454419+MHSanaei@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MHSanaei <33454419+MHSanaei@users.noreply.github.com> --- web/assets/js/util/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'web/assets') diff --git a/web/assets/js/util/index.js b/web/assets/js/util/index.js index 4bf760d7..bb47f538 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; } } -- cgit v1.2.3