Skip to content

Commit

Permalink
fix: error caused by long flag
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Sep 9, 2022
1 parent f5c1aed commit 83a6468
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions GZCTF/Models/Request/Game/FlagSubmitModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ public class FlagSubmitModel
/// fix: 防止前端的意外提交 (number/float/null) 可能被错误转换
/// </summary>
[Required(ErrorMessage = "flag 是必需的")]
[MaxLength(126, ErrorMessage = "flag 过长")]
public string Flag { get; set; } = string.Empty;
}

0 comments on commit 83a6468

Please sign in to comment.