From 234413e6e73495b67c90e371c3f43ccb60dcbbf4 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 19 Aug 2018 23:06:25 -0400 Subject: fix escaping non-alphanumerics --- src/Propellor/Property/Systemd.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Propellor') diff --git a/src/Propellor/Property/Systemd.hs b/src/Propellor/Property/Systemd.hs index b983d9d8..0d6dd097 100644 --- a/src/Propellor/Property/Systemd.hs +++ b/src/Propellor/Property/Systemd.hs @@ -472,5 +472,5 @@ escapePath = concatMap escape where escape '/' = "-" escape c - | (isAscii c || c == '_') = [c] + | ((isAscii c && isAlphaNum c) || c == '_') = [c] | otherwise = '\\' : printf "%x" c -- cgit v1.2.3