0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-17 16:40:10 +02:00

Limit license name's size

This commit is contained in:
Lunny Xiao 2026-02-18 11:19:55 -08:00
parent b9d323c3d8
commit 5cd119ba58
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ type CreateRepoOption struct {
// Gitignores to use
Gitignores string `json:"gitignores"`
// License to use
License string `json:"license"`
License string `json:"license" binding:"MaxSize(100)"`
// Readme of the repository to create
Readme string `json:"readme"`
// DefaultBranch of the repository (used when initializes and in template)

View File

@ -28,7 +28,7 @@ type CreateRepoForm struct {
AutoInit bool
Gitignores string
IssueLabels string
License string
License string `binding:"MaxSize(100)"`
Readme string
Template bool