Skip to content

Commit fac8ea2

Browse files
author
Bruno Oliveira
committed
Adding Recursion depth control to ModelStateDictionary
1 parent 70303d7 commit fac8ea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Mvc/Mvc.Abstractions/src/ModelBinding/ModelStateDictionary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ private static StringSegment FindNext(string key, ref MatchResult currentMatch)
680680
return new StringSegment(key, keyStart, index - keyStart);
681681
}
682682

683-
private static ModelValidationState? GetValidity(ModelStateNode node, int currentDepth)
683+
private ModelValidationState? GetValidity(ModelStateNode node, int currentDepth)
684684
{
685685
if (node == null || currentDepth >= MaxRecursionDepth)
686686
{

0 commit comments

Comments
 (0)