diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-09-09 18:19:57 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-09-09 18:19:57 -0400 |
commit | 2a3660dae3b8fa8322e55f04d27a301d45d33b02 (patch) | |
tree | 5267de966ff57e9058b9f01a5bbcc6bc43de6ce4 /modules/auth/repo_form.go | |
parent | 09ca5d125a4938f013d4b471e9d05943156d2604 (diff) | |
download | gitea-2a3660dae3b8fa8322e55f04d27a301d45d33b02.tar.gz gitea-2a3660dae3b8fa8322e55f04d27a301d45d33b02.zip |
Fix #453
Diffstat (limited to 'modules/auth/repo_form.go')
-rw-r--r-- | modules/auth/repo_form.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index 5fd1114052..52f6c6554f 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -20,7 +20,7 @@ import ( type CreateRepoForm struct { Uid int64 `form:"uid" binding:"Required"` - RepoName string `form:"repo_name" binding:"Required;AlphaDash;MaxSize(100)"` + RepoName string `form:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"` Private bool `form:"private"` Description string `form:"desc" binding:"MaxSize(255)"` Gitignore string `form:"gitignore"` @@ -37,7 +37,7 @@ type MigrateRepoForm struct { AuthUserName string `form:"auth_username"` AuthPasswd string `form:"auth_password"` Uid int64 `form:"uid" binding:"Required"` - RepoName string `form:"repo_name" binding:"Required;AlphaDash;MaxSize(100)"` + RepoName string `form:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"` Mirror bool `form:"mirror"` Private bool `form:"private"` Description string `form:"desc" binding:"MaxSize(255)"` @@ -48,7 +48,7 @@ func (f *MigrateRepoForm) Validate(ctx *macaron.Context, errs *binding.Errors, l } type RepoSettingForm struct { - RepoName string `form:"repo_name" binding:"Required;AlphaDash;MaxSize(100)"` + RepoName string `form:"repo_name" binding:"Required;AlphaDashDot;MaxSize(100)"` Description string `form:"desc" binding:"MaxSize(255)"` Website string `form:"site" binding:"Url;MaxSize(100)"` Branch string `form:"branch"` |