From 9ff44bb0ac9c5cd7810743b3eddd904452adf86c Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 13 May 2016 19:11:16 +0100 Subject: WinGui: Don't allow the user to enter invalid filename characters in the "File Format" autoname text box. Also sanitise the input on startup for legacy users which bad options. Fixes #182 --- win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs | 11 ++++++++++- win/CS/HandBrakeWPF/Properties/ResourcesUI.resx | 5 ++++- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'win/CS/HandBrakeWPF/Properties') diff --git a/win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs b/win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs index c67fddf27..f39eed8f8 100644 --- a/win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs +++ b/win/CS/HandBrakeWPF/Properties/ResourcesUI.Designer.cs @@ -1105,7 +1105,7 @@ namespace HandBrakeWPF.Properties { } /// - /// Looks up a localized string similar to Format:. + /// Looks up a localized string similar to File Format:. /// public static string Options_Format { get { @@ -1410,6 +1410,15 @@ namespace HandBrakeWPF.Properties { } } + /// + /// Looks up a localized string similar to The file format entered contained invalid characters. These have been removed. . + /// + public static string OptionsView_InvalidFileFormatChars { + get { + return ResourceManager.GetString("OptionsView_InvalidFileFormatChars", resourceCulture); + } + } + /// /// Looks up a localized string similar to Anamorphic:. /// diff --git a/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx b/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx index ef6cd111f..5b6a8bad0 100644 --- a/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx +++ b/win/CS/HandBrakeWPF/Properties/ResourcesUI.resx @@ -736,7 +736,7 @@ Disable LibDVDNav. (libdvdread will be used instead) - Format: + File Format: General @@ -872,4 +872,7 @@ This will not affect your current settings in the Subtitle tab. Configure how the Subtitle Tracks are automatically selected and configured when you select a new title or source video. + + The file format entered contained invalid characters. These have been removed. + \ No newline at end of file -- cgit v1.2.3