[Aaru] Escape debug output of command parameters that can make Spectre.Console throw an exception if user input contains a square bracket.

This commit is contained in:
2023-10-08 10:57:16 +01:00
parent 42b2a8100b
commit 4994a85d65
21 changed files with 82 additions and 82 deletions

View File

@@ -114,7 +114,7 @@ sealed class EntropyCommand : Command
AaruConsole.DebugWriteLine(MODULE_NAME, "--debug={0}", debug);
AaruConsole.DebugWriteLine(MODULE_NAME, "--duplicated-sectors={0}", duplicatedSectors);
AaruConsole.DebugWriteLine(MODULE_NAME, "--input={0}", imagePath);
AaruConsole.DebugWriteLine(MODULE_NAME, "--input={0}", Markup.Escape(imagePath ?? ""));
AaruConsole.DebugWriteLine(MODULE_NAME, "--separated-tracks={0}", separatedTracks);
AaruConsole.DebugWriteLine(MODULE_NAME, "--verbose={0}", verbose);
AaruConsole.DebugWriteLine(MODULE_NAME, "--whole-disc={0}", wholeDisc);