summaryrefslogtreecommitdiff
path: root/src/Propellor
diff options
context:
space:
mode:
authorJoey Hess2018-08-19 23:06:25 -0400
committerJoey Hess2018-08-19 23:06:25 -0400
commit234413e6e73495b67c90e371c3f43ccb60dcbbf4 (patch)
treefeadc26ac78d54ff94bdfd28c3847bed46d1d956 /src/Propellor
parentfbcdcd65d41e662a444a065949bfa5279744359b (diff)
fix escaping non-alphanumerics
Diffstat (limited to 'src/Propellor')
-rw-r--r--src/Propellor/Property/Systemd.hs2
1 files changed, 1 insertions, 1 deletions
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