From f3c554d0ec9905e842be81b97563edca0f81e273 Mon Sep 17 00:00:00 2001 From: iotux <46082385+iotux@users.noreply.github.com> Date: Thu, 1 Jan 2026 08:37:42 +0100 Subject: [PATCH] Update server/monitor-types/system-service.js Co-authored-by: Frank Elsinga --- server/monitor-types/system-service.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/monitor-types/system-service.js b/server/monitor-types/system-service.js index c88f765bd..9ed493e97 100644 --- a/server/monitor-types/system-service.js +++ b/server/monitor-types/system-service.js @@ -42,9 +42,7 @@ class SystemServiceMonitorType extends MonitorType { // SECURITY: Prevent Argument Injection // Only allow alphanumeric, dots, dashes, underscores, and @ if (!serviceName || !/^[a-zA-Z0-9._\-@]+$/.test(serviceName)) { - heartbeat.status = DOWN; - heartbeat.msg = "Invalid service name. Please use the internal Service Name (no spaces)."; - reject(new Error(heartbeat.msg)); + reject(new Error("Invalid service name. Please use the internal Service Name (no spaces).")); return; }