Fix systemd unit string matchs

This commit is contained in:
Justin Garrison 2023-09-14 12:17:09 -07:00 committed by GitHub
parent fc786dcd1d
commit 62267518b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ var (
// The set of known safe characters to pass to journalctl / GetWinEvent flags - only add to this list if the
// character cannot be used to create invalid sequences. This is intended as a broad defense against malformed
// input that could cause an escape.
reServiceNameUnsafeCharacters = regexp.MustCompile(`[^a-zA-Z\-_0-9@]+`)
reServiceNameUnsafeCharacters = regexp.MustCompile(`[^a-zA-Z\-_.:0-9@]+`)
)
// journalServer returns text output from the OS specific service logger to view