mirror of
https://github.com/go-gitea/gitea
synced 2025-07-28 05:08:37 +00:00
enforce maxlength in frontend (#29389)
Set maxlength attribute in frontend to long file-name   (same for branch-name and commit-summary)
This commit is contained in:
committed by
GitHub
parent
d2f6588b66
commit
756b952c52
@@ -15,7 +15,7 @@
|
||||
<a class="section" href="{{$.BranchLink}}">{{.BranchName}}</a>
|
||||
<span>{{ctx.Locale.Tr "repo.editor.or"}} <a href="{{$.BranchLink}}">{{ctx.Locale.Tr "repo.editor.cancel_lower"}}</a></span>
|
||||
<input type="hidden" id="tree_path" name="tree_path" value="" required>
|
||||
<input id="file-name" type="hidden" value="diff.patch">
|
||||
<input id="file-name" maxlength="500" type="hidden" value="diff.patch">
|
||||
</div>
|
||||
</div>
|
||||
<div class="field">
|
||||
|
Reference in New Issue
Block a user