Prevent spaces from being embedded in the name of new WORM keys, as that handing spaces in keys would complicate things like the external special remote protocol.
This commit is contained in:
parent
8cff67841c
commit
51801cff6a
2 changed files with 5 additions and 2 deletions
|
@ -413,7 +413,7 @@ gitAnnexAssistantDefaultDir :: FilePath
|
|||
gitAnnexAssistantDefaultDir = "annex"
|
||||
|
||||
{- Sanitizes a String that will be used as part of a Key's keyName,
|
||||
- dealing with characters that cause problems on substandard filesystems.
|
||||
- dealing with characters that cause problems.
|
||||
-
|
||||
- This is used when a new Key is initially being generated, eg by getKey.
|
||||
- Unlike keyFile and fileKey, it does not need to be a reversable
|
||||
|
@ -430,7 +430,7 @@ preSanitizeKeyName = concatMap escape
|
|||
where
|
||||
escape c
|
||||
| isAsciiUpper c || isAsciiLower c || isDigit c = [c]
|
||||
| c `elem` ".-_ " = [c] -- common, assumed safe
|
||||
| c `elem` ".-_" = [c] -- common, assumed safe
|
||||
| c `elem` "/%:" = [c] -- handled by keyFile
|
||||
-- , is safe and uncommon, so will be used to escape
|
||||
-- other characters. By itself, it is escaped to
|
||||
|
|
|
@ -18,6 +18,9 @@ git-annex (6.20170521) UNRELEASED; urgency=medium
|
|||
* Added remote configuration settings annex-ignore-command and
|
||||
annex-sync-command, which are dynamic equivilants of the annex-ignore
|
||||
and annex-sync configurations.
|
||||
* Prevent spaces from being embedded in the name of new WORM keys,
|
||||
as that handing spaces in keys would complicate things like the
|
||||
external special remote protocol.
|
||||
|
||||
-- Joey Hess <id@joeyh.name> Sat, 17 Jun 2017 13:02:24 -0400
|
||||
|
||||
|
|
Loading…
Reference in a new issue