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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user