From 3c5135d4e4acdedb05e489f8139a45e55d1c278f Mon Sep 17 00:00:00 2001 From: Developer Date: Sat, 21 Mar 2026 00:35:10 -0400 Subject: [PATCH] CODE CLARITY: Add parentheses to InterWorx detection logic FIXED: - InterWorx detection line now has explicit parentheses - Makes operator precedence unambiguous for code review - Ensures future maintainers understand the logic: 1. Check /home/interworx exists, OR 2. Check /usr/bin/iworx-helper exists, OR 3. Check BOTH /chroot/home exists AND /usr/bin/nodeworx exists No behavioral change - just improved readability and maintainability. --- modules/security/malware-scanner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/security/malware-scanner.sh b/modules/security/malware-scanner.sh index 01dfcfa..dad922c 100755 --- a/modules/security/malware-scanner.sh +++ b/modules/security/malware-scanner.sh @@ -679,7 +679,7 @@ if [ -z "$CONTROL_PANEL" ]; then CONTROL_PANEL="cpanel" elif [ -f "/usr/local/psa/version" ]; then CONTROL_PANEL="plesk" - elif [ -d "/home/interworx" ] || [ -f "/usr/bin/iworx-helper" ] || [ -d "/chroot/home" ] && [ -f "/usr/bin/nodeworx" ]; then + elif [ -d "/home/interworx" ] || [ -f "/usr/bin/iworx-helper" ] || ([ -d "/chroot/home" ] && [ -f "/usr/bin/nodeworx" ]); then CONTROL_PANEL="interworx" else CONTROL_PANEL="standalone"