summaryrefslogtreecommitdiff
path: root/Backend
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2020-03-20 13:09:16 -0400
committerJoey Hess <joeyh@joeyh.name>2020-03-20 13:09:16 -0400
commitbbe977a2b6b439b7ce767aae935d4ec98ee67a91 (patch)
tree90665d52ea10205c49021ec41c0aef9f6c55e893 /Backend
parent6222277179ad46cd4c1e648dbd5aeedf02a5ce34 (diff)
fsck: Fix reversion in 8.20200226 that made it incorrectly warn that hashed keys with an extension should be upgraded.
Diffstat (limited to 'Backend')
-rw-r--r--Backend/Hash.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Backend/Hash.hs b/Backend/Hash.hs
index 1da11240af..9ac00f8cd3 100644
--- a/Backend/Hash.hs
+++ b/Backend/Hash.hs
@@ -157,7 +157,8 @@ keyHash = fst . splitKeyNameExtension
validInExtension :: Word8 -> Bool
validInExtension c
| isAlphaNum (chr (fromIntegral c)) = True
- | c <= 127 = False -- other ascii, spaces, punctuation, control chars
+ | fromIntegral c == ord '.' = True
+ | c <= 127 = False -- other ascii: spaces, punctuation, control chars
| otherwise = True -- utf8 is allowed, also other encodings
{- Upgrade keys that have the \ prefix on their hash due to a bug, or