mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-04 20:45:58 +01:00
(refs #1007)Fix max length constraint for repository owner and name at the repository creation form
This commit is contained in:
@@ -90,8 +90,8 @@ trait AccountControllerBase extends AccountManagementControllerBase {
|
|||||||
case class ForkRepositoryForm(owner: String, name: String)
|
case class ForkRepositoryForm(owner: String, name: String)
|
||||||
|
|
||||||
val newRepositoryForm = mapping(
|
val newRepositoryForm = mapping(
|
||||||
"owner" -> trim(label("Owner" , text(required, maxlength(40), identifier, existsAccount))),
|
"owner" -> trim(label("Owner" , text(required, maxlength(100), identifier, existsAccount))),
|
||||||
"name" -> trim(label("Repository name", text(required, maxlength(40), repository, uniqueRepository))),
|
"name" -> trim(label("Repository name", text(required, maxlength(100), repository, uniqueRepository))),
|
||||||
"description" -> trim(label("Description" , optional(text()))),
|
"description" -> trim(label("Description" , optional(text()))),
|
||||||
"isPrivate" -> trim(label("Repository Type", boolean())),
|
"isPrivate" -> trim(label("Repository Type", boolean())),
|
||||||
"createReadme" -> trim(label("Create README" , boolean()))
|
"createReadme" -> trim(label("Create README" , boolean()))
|
||||||
|
|||||||
Reference in New Issue
Block a user