Skip to content

Commit 83a6468

Browse files
committedSep 9, 2022
fix: error caused by long flag
1 parent f5c1aed commit 83a6468

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎GZCTF/Models/Request/Game/FlagSubmitModel.cs

+1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ public class FlagSubmitModel
1212
/// fix: 防止前端的意外提交 (number/float/null) 可能被错误转换
1313
/// </summary>
1414
[Required(ErrorMessage = "flag 是必需的")]
15+
[MaxLength(126, ErrorMessage = "flag 过长")]
1516
public string Flag { get; set; } = string.Empty;
1617
}

0 commit comments

Comments
 (0)
Please sign in to comment.