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:
parent
b9d323c3d8
commit
5cd119ba58
@ -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)
|
||||
|
||||
@ -28,7 +28,7 @@ type CreateRepoForm struct {
|
||||
AutoInit bool
|
||||
Gitignores string
|
||||
IssueLabels string
|
||||
License string
|
||||
License string `binding:"MaxSize(100)"`
|
||||
Readme string
|
||||
Template bool
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user