diff options
author | Lauris BH <lauris@nix.lv> | 2019-11-25 01:06:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-25 01:06:23 +0200 |
commit | 95c3dc856a7d4199232549e3b4d76769ef868bda (patch) | |
tree | 40eed5392b00881f5e0e078012cc11e24637913c /templates/repo/release | |
parent | e8241bf55e0ff683933f9c7b51b8ee5956965bdf (diff) | |
download | gitea-95c3dc856a7d4199232549e3b4d76769ef868bda.tar.gz gitea-95c3dc856a7d4199232549e3b4d76769ef868bda.zip |
Fix max length check and limit in multiple repo forms (#9148)
* Fix input field max length for release, label and milestone forms
* Add max length for isseu and PR title
Diffstat (limited to 'templates/repo/release')
-rw-r--r-- | templates/repo/release/new.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/release/new.tmpl b/templates/repo/release/new.tmpl index cdead92b9d..01af6edc12 100644 --- a/templates/repo/release/new.tmpl +++ b/templates/repo/release/new.tmpl @@ -19,7 +19,7 @@ {{if .PageIsEditRelease}} <b>{{.tag_name}}</b><span class="at">@</span><strong>{{.tag_target}}</strong> {{else}} - <input id="tag-name" name="tag_name" value="{{.tag_name}}" placeholder="{{.i18n.Tr "repo.release.tag_name"}}" autofocus required> + <input id="tag-name" name="tag_name" value="{{.tag_name}}" placeholder="{{.i18n.Tr "repo.release.tag_name"}}" autofocus required maxlength="255"> <span class="at">@</span> <div class="ui selection dropdown"> <input type="hidden" name="tag_target" value="{{.tag_target}}"/> @@ -42,7 +42,7 @@ <div class="eleven wide column"> <div class="field {{if .Err_Title}}error{{end}}"> <label>{{.i18n.Tr "repo.release.title"}}</label> - <input name="title" placeholder="{{.i18n.Tr "repo.release.title"}}" value="{{.title}}" autofocus required> + <input name="title" placeholder="{{.i18n.Tr "repo.release.title"}}" value="{{.title}}" autofocus required maxlength="255"> </div> <div class="field"> <label>{{.i18n.Tr "repo.release.content"}}</label> |