git-annex/CmdLine
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
..
GitAnnex filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
GitAnnexShell remove git-annex-shell compat code 2021-10-11 15:36:51 -04:00
Action.hs filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
AnnexSetter.hs remove --backend from global options 2022-06-29 13:33:25 -04:00
Batch.hs use lookupKeyStaged in --batch code paths 2022-10-26 14:43:06 -04:00
GitAnnex.hs findkeys: New command, very similar to git-annex find but operating on keys 2023-01-17 14:51:57 -04:00
GitAnnexShell.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
GitRemoteTorAnnex.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
Option.hs remove --backend from global options 2022-06-29 13:33:25 -04:00
Seek.hs filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
Usage.hs add FIELD?=GLOB to git-annex view usage 2023-02-07 18:09:10 -04:00