allow ftp urls by default

They're no worse than http certianly. And, the backport of these
security fixes has to deal with wget, which supports http https and ftp
and has no way to turn off individual schemes, so this will make that
easier.
This commit is contained in:
Joey Hess 2018-06-18 15:36:12 -04:00
parent c93b6c1e08
commit 3c0a538335
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 5 additions and 5 deletions

View file

@ -162,7 +162,7 @@ extractGitConfig r = GitConfig
, annexRetryDelay = Seconds
<$> getmayberead (annex "retrydelay")
, annexAllowedUrlSchemes = S.fromList $ map mkScheme $
maybe ["http", "https"] words $
maybe ["http", "https", "ftp"] words $
getmaybe (annex "security.allowed-url-schemes")
, annexAllowedHttpAddresses = fromMaybe "" $
getmaybe (annex "security.allowed-http-addresses")