git-annex/Remote/Helper
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
..
Chunked filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
AWS.hs correct obsolete comment 2023-01-31 14:42:26 -04:00
Chunked.hs Fix ambigous typos 2023-03-17 15:14:47 -04:00
Encryptable.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
ExportImport.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Git.hs Windows: Support long filenames in more (possibly all) of the code 2023-03-01 15:55:58 -04:00
Hooks.hs plumb VerifyConfig into retrieveKeyFile 2021-08-17 12:43:13 -04:00
Http.hs git-lfs gitlab interoperability fix 2021-11-10 13:51:11 -04:00
Messages.hs remove "checking remotename" message 2021-04-27 13:05:27 -04:00
P2P.hs remove git-annex-shell compat code 2021-10-11 15:36:51 -04:00
ReadOnly.hs convert renameExport to throw exception 2020-05-15 15:08:09 -04:00
Special.hs incremental verification for retrieval from all export remotes 2022-05-09 13:49:33 -04:00
Ssh.hs filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
ThirdPartyPopulated.hs ImportableContentsChunkable 2021-10-08 13:15:22 -04:00