git-annex/Remote
Joey Hess 3290a09a70
filter out control characters in warning messages
Converted warning and similar to use StringContainingQuotedPath. Most
warnings are static strings, some do refer to filepaths that need to be
quoted, and others don't need quoting.

Note that, since quote filters out control characters of even
UnquotedString, this makes all warnings safe, even when an attacker
sneaks in a control character in some other way.

When json is being output, no quoting is done, since json gets its own
quoting.

This does, as a side effect, make warning messages in json output not
be indented. The indentation is only needed to offset warning messages
underneath the display of the file they apply to, so that's ok.

Sponsored-by: Brett Eisenberg on Patreon
2023-04-10 15:55:44 -04:00
..
Directory improve createDirectoryUnder to allow alternate top directories 2022-08-12 12:52:37 -04:00
External filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
Helper filter out control characters in warning messages 2023-04-10 15:55:44 -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 filter out control characters in warning messages 2023-04-10 15:55:44 -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 filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
GCrypt.hs filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
Git.hs filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
GitLFS.hs filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
Glacier.hs added an optional cost= configuration to all special remotes 2023-01-12 13:42:28 -04:00
Hook.hs filter out control characters in warning messages 2023-04-10 15:55:44 -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 warning messages 2023-04-10 15:55:44 -04:00
Rsync.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
S3.hs filter out control characters in warning messages 2023-04-10 15:55:44 -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