git-annex/Remote
Joey Hess cd544e548b
filter out control characters in error messages
giveup changed to filter out control characters. (It is too low level to
make it use StringContainingQuotedPath.)

error still does not, but it should only be used for internal errors,
where the message is not attacker-controlled.

Changed a lot of existing error to giveup when it is not strictly an
internal error.

Of course, other exceptions can still be thrown, either by code in
git-annex, or a library, that include some attacker-controlled value.
This does not guard against those.

Sponsored-by: Noam Kremen on Patreon
2023-04-10 13:50:51 -04:00
..
Directory improve createDirectoryUnder to allow alternate top directories 2022-08-12 12:52:37 -04:00
External external protocol VERSION 2 2023-03-28 17:00:08 -04:00
Helper filter out control characters in error messages 2023-04-10 13:50:51 -04:00
List auto-init autoenable=yes 2020-05-27 12:40:35 -04:00
Rsync add newtypes for QuickCheck to avoid LANG=C issues 2020-11-09 20:21:18 -04:00
WebDAV Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Adb.hs added an optional cost= configuration to all special remotes 2023-01-12 13:42:28 -04:00
BitTorrent.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
Borg.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Bup.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Ddar.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
Directory.hs fix build warnings on windows 2023-03-21 18:41:23 -04:00
External.hs fix concurrency bug causing EXPORT to be sent to the wrong external 2023-03-28 15:21:10 -04:00
GCrypt.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
Git.hs addurl, importfeed: Fix failure when annex.securehashesonly is set 2023-03-27 15:10:46 -04:00
GitLFS.hs sync: Fix parsing of gcrypt::rsync:// urls that use a relative path 2023-03-23 15:20:00 -04:00
Glacier.hs added an optional cost= configuration to all special remotes 2023-01-12 13:42:28 -04:00
Hook.hs added an optional cost= configuration to all special remotes 2023-01-12 13:42:28 -04:00
HttpAlso.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
List.hs start borg special remote 2020-12-18 16:03:51 -04:00
P2P.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
Rsync.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
S3.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Tahoe.hs added an optional cost= configuration to all special remotes 2023-01-12 13:42:28 -04:00
Web.hs Typo: sansative -> sensitive 2023-03-17 15:14:50 -04:00
WebDAV.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00