Merge pull request 'fix: allow dots in service names for systemd (nginx.service, ssh.service)' (#31) from feat/android-v1.6.0 into master
Reviewed-on: #31
This commit was merged in pull request #31.
This commit is contained in:
@@ -667,7 +667,7 @@ class ApiController
|
|||||||
$this->view->json(['error' => 'Invalid service or action'], 400);
|
$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 === '') {
|
if ($sanitized === '') {
|
||||||
$this->view->json(['error' => 'Invalid service name'], 400);
|
$this->view->json(['error' => 'Invalid service name'], 400);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user