ui/termstatus: Quote funny filenames

Fixes #2260, #4191.
This commit is contained in:
greatroar authored and Michael Eischer committed 2023-04-23 12:45:40 +02:00
1 parent 07a44a88f2
commit f342db7666
4 files changed
+68 -8

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
Bugfix: Exotic filenames no longer break restic backup's status output
Restic backup shows the names of files that it is working on. In previous
versions of restic, those names were printed without first sanitizing them,
so that filenames containing newlines or terminal control characters could
mess up restic backup's output or even change the state of a terminal.
Filenames are now checked and quoted if they contain non-printable or
non-Unicode characters.
https://github.com/restic/restic/issues/2260
https://github.com/restic/restic/issues/4191
https://github.com/restic/restic/pull/4192