summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2022-09-16 09:19:16 +0200
committerGitHub <noreply@github.com>2022-09-16 15:19:16 +0800
commit8351172b6e5221290dc5b2c81e159e2eec0b43c8 (patch)
treef38555c165d2ea00c0c632f83b1e50e2a21c9aa4 /templates/repo
parentbdc4c4c379df517ff24177f948b22906787faf6a (diff)
downloadgitea-8351172b6e5221290dc5b2c81e159e2eec0b43c8.tar.gz
gitea-8351172b6e5221290dc5b2c81e159e2eec0b43c8.zip
Limit length of repo description and repo url input fields (#21119)
Both allow only limited characters. If you input more, you will get a error message. So it make sense to limit the characters of the input fields. Slightly relax the MaxSize of repo's Description and Website
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/settings/options.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index a9ceebd446..0214df4514 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -42,11 +42,11 @@
{{end}}
<div class="field {{if .Err_Description}}error{{end}}">
<label for="description">{{$.locale.Tr "repo.repo_desc"}}</label>
- <textarea id="description" name="description" rows="2">{{.Repository.Description}}</textarea>
+ <textarea id="description" name="description" rows="2" maxlength="2048">{{.Repository.Description}}</textarea>
</div>
<div class="field {{if .Err_Website}}error{{end}}">
<label for="website">{{.locale.Tr "repo.settings.site"}}</label>
- <input id="website" name="website" type="url" value="{{.Repository.Website}}">
+ <input id="website" name="website" type="url" maxlength="1024" value="{{.Repository.Website}}">
</div>
<div class="field">