mirror of
https://github.com/Lidarr/Lidarr
synced 2026-05-06 03:21:46 +02:00
Ensure Custom Format Maximum Size won't overflow
(cherry picked from commit a50d2562649bbe77d0feb9fbfc594d56952e0a5e)
This commit is contained in:
parent
f9b2e57696
commit
9f229bb684
1 changed files with 1 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ public SizeSpecificationValidator()
|
|||
{
|
||||
RuleFor(c => c.Min).GreaterThanOrEqualTo(0);
|
||||
RuleFor(c => c.Max).GreaterThan(c => c.Min);
|
||||
RuleFor(c => c.Max).LessThanOrEqualTo(double.MaxValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue