From 96a73384c4e264f2fa62797ad113d36952c101ee Mon Sep 17 00:00:00 2001 From: Agent Date: Tue, 9 Jun 2026 19:25:14 -0400 Subject: [PATCH] fix: allow dots in service names for systemd (nginx.service, ssh.service) --- src/Controllers/ApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controllers/ApiController.php b/src/Controllers/ApiController.php index 895754d..053b628 100755 --- a/src/Controllers/ApiController.php +++ b/src/Controllers/ApiController.php @@ -667,7 +667,7 @@ class ApiController $this->view->json(['error' => 'Invalid service or action'], 400); } - $sanitized = preg_replace('/[^a-zA-Z0-9\-_]/', '', $service); + $sanitized = preg_replace('/[^a-zA-Z0-9\-_.]/', '', $service); if ($sanitized === '') { $this->view->json(['error' => 'Invalid service name'], 400); } -- 2.43.0