1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-25 22:37:27 -04:00

Fixed: Validate TMDb ListId is a valid integer

This commit is contained in:
Qstick
2020-09-09 21:39:52 -04:00
parent 764d456d49
commit b43732b343
2 changed files with 40 additions and 2 deletions
@@ -1,4 +1,4 @@
using FluentValidation;
using FluentValidation;
using NzbDrone.Core.Annotations;
namespace NzbDrone.Core.ImportLists.TMDb.List
@@ -8,7 +8,7 @@ namespace NzbDrone.Core.ImportLists.TMDb.List
public TMDbListSettingsValidator()
: base()
{
RuleFor(c => c.ListId).NotEmpty();
RuleFor(c => c.ListId).Matches("^[1-9][0-9]*$").NotEmpty();
}
}