mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 10:54:06 +02:00
Backport #39027 by @bircni Bound gitignore template selections at both web and API request boundaries before repository initialization. Co-authored-by: bircni <bircni@icloud.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -154,7 +154,7 @@ type CreateRepoOption struct {
|
||||
// Whether the repository is template
|
||||
Template bool `json:"template"`
|
||||
// Gitignores to use
|
||||
Gitignores string `json:"gitignores"`
|
||||
Gitignores string `json:"gitignores" binding:"MaxSize(1024)"`
|
||||
// License to use
|
||||
License string `json:"license" binding:"MaxSize(100)"`
|
||||
// Readme of the repository to create
|
||||
|
||||
Reference in new issue
Block a user