Skip to content

Commit

Permalink
CWE-134: Uncontrolled format string - Fix (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjswan committed Apr 25, 2024
1 parent 2bfcc82 commit 0300c02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FanartHandler/FanartHandlerConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using System.Globalization;
using System.IO;
using System.Threading;
using System.Text.RegularExpressions;
using System.Windows.Forms;

namespace FanartHandler
Expand Down Expand Up @@ -523,7 +524,7 @@ private void UpdateSettings()
Utils.UseDefaultBackdrop = CheckBoxUseDefaultBackdrop.Checked;
Utils.DefaultBackdropMask = edtDefaultBackdropMask.Text.Trim();
Utils.DeleteMissing = CheckBoxDeleteMissing.Checked;
Utils.FanartTVPersonalAPIKey = edtFanartTVPersonalAPIKey.Text.Trim();
Utils.FanartTVPersonalAPIKey = Regex.Replace(edtFanartTVPersonalAPIKey.Text, "[^A-F0-9]", string.Empty, RegexOptions.IgnoreCase).Trim();
Utils.UseHighDefThumbnails = checkBoxUseHighDefThumbnails.Checked;
Utils.UseMinimumResolutionForDownload = CheckBoxUseMinimumResolutionForDownload.Checked;
Utils.IgnoreMinimumResolutionForMusicThumbDownload = CheckBoxIgnoreMinimumResolutionForMusicThumbDownload.Checked;
Expand Down

0 comments on commit 0300c02

Please sign in to comment.