From 132a03874d04c8970a75101bf4018cf7b773f17f Mon Sep 17 00:00:00 2001 From: iotux <46082385+iotux@users.noreply.github.com> Date: Thu, 1 Jan 2026 08:03:57 +0100 Subject: [PATCH] Update server/monitor-types/system-service.js Co-authored-by: Frank Elsinga --- server/monitor-types/system-service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/monitor-types/system-service.js b/server/monitor-types/system-service.js index b290f53f5..c799f7b4d 100644 --- a/server/monitor-types/system-service.js +++ b/server/monitor-types/system-service.js @@ -85,7 +85,7 @@ class SystemServiceMonitorType extends MonitorType { "-NonInteractive", "-Command", // Single quotes around the service name - `(Get-Service -Name '${safeServiceName}').Status` + `(Get-Service -Name '${serviceName.replaceAll("'", "''")}').Status` ]; execFile(cmd, args, { timeout: 5000 }, (error, stdout, stderr) => {