Skip to content

Commit

Permalink
Merge pull request #243 from pixlise/bugfix/scan-description-length
Browse files Browse the repository at this point in the history
Allow scan meta write description to be empty and allow more than 600…
  • Loading branch information
pnemere committed Jun 17, 2024
2 parents c9057f1 + 11a8721 commit c93a21f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/ws/handlers/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func HandleScanMetaWriteReq(req *protos.ScanMetaWriteReq, hctx wsHelpers.Handler
if err := wsHelpers.CheckStringField(&req.Title, "Title", 1, 100); err != nil {
return nil, err
}
if err := wsHelpers.CheckStringField(&req.Description, "Description", 1, 600); err != nil {
if err := wsHelpers.CheckStringField(&req.Description, "Description", 0, 30000); err != nil {
return nil, err
}
if err := wsHelpers.CheckFieldLength(req.Tags, "Tags", 0, 10); err != nil {
Expand Down

0 comments on commit c93a21f

Please sign in to comment.