Escape format name, fixes #869

This commit is contained in:
2025-08-20 19:48:41 +01:00
parent f70154c17d
commit f5414ff23d
7 changed files with 24 additions and 19 deletions

View File

@@ -64,6 +64,7 @@ using JetBrains.Annotations;
using MsBox.Avalonia;
using MsBox.Avalonia.Enums;
using ReactiveUI;
using Spectre.Console;
using Console = Aaru.Gui.Views.Dialogs.Console;
using DeviceInfo = Aaru.Core.Devices.Info.DeviceInfo;
using ImageInfo = Aaru.Gui.Views.Panels.ImageInfo;
@@ -568,7 +569,7 @@ public sealed class MainWindowViewModel : ViewModelBase
return;
}
AaruLogging.WriteLine(UI.Image_format_identified_by_0_1, imageFormat.Name, imageFormat.Id);
AaruLogging.WriteLine(UI.Image_format_identified_by_0_1, Markup.Escape(imageFormat.Name), imageFormat.Id);
try
{
@@ -835,11 +836,11 @@ public sealed class MainWindowViewModel : ViewModelBase
.ThenBy(d => d.Model))
{
AaruLogging.Debug(MODULE_NAME,
UI.Found_supported_device_model_0_by_manufacturer_1_on_bus_2_and_path_3,
device.Model,
device.Vendor,
device.Bus,
device.Path);
UI.Found_supported_device_model_0_by_manufacturer_1_on_bus_2_and_path_3,
device.Model,
device.Vendor,
device.Bus,
device.Path);
var deviceModel = new DeviceModel
{