diff options
author | ayb <ayb@3hg.fr> | 2021-06-26 00:38:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-25 18:38:27 -0400 |
commit | 9b33d18899b7e825e4754969ffcc9d7b541d2d28 (patch) | |
tree | 0e6a0ea1f7062b18cdaa426b3d2eb42d9ca7ac2a /services/forms/user_form.go | |
parent | 1a1ce9b7216ab80e94987270da8fc2def57237c0 (diff) | |
download | gitea-9b33d18899b7e825e4754969ffcc9d7b541d2d28.tar.gz gitea-9b33d18899b7e825e4754969ffcc9d7b541d2d28.zip |
Added support for gopher URLs. (#14749)
* Added support for gopher URLs.
* Add setting and make this user settable instead
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'services/forms/user_form.go')
-rw-r--r-- | services/forms/user_form.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/forms/user_form.go b/services/forms/user_form.go index 2c065dc511..903a625da0 100644 --- a/services/forms/user_form.go +++ b/services/forms/user_form.go @@ -226,7 +226,7 @@ type UpdateProfileForm struct { Name string `binding:"AlphaDashDot;MaxSize(40)"` FullName string `binding:"MaxSize(100)"` KeepEmailPrivate bool - Website string `binding:"ValidUrl;MaxSize(255)"` + Website string `binding:"ValidSiteUrl;MaxSize(255)"` Location string `binding:"MaxSize(50)"` Language string Description string `binding:"MaxSize(255)"` |