Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 11:16:11 +01:00

Validate Federated Repos Field

Considering this from a POC perspective we might want to avoid misuse
of this field. In other words, we want this field to be used as
intended.
This commit is contained in:
erik 2024-03-20 13:16:53 +01:00
parent 584af0486d
commit 1cbd5e33cb

View file

@ -114,7 +114,7 @@ type RepoSettingForm struct {
Description string `binding:"MaxSize(2048)"` Description string `binding:"MaxSize(2048)"`
Website string `binding:"ValidUrl;MaxSize(1024)"` Website string `binding:"ValidUrl;MaxSize(1024)"`
// ToDo: Do we need validation at this point? // ToDo: Do we need validation at this point?
FederationRepos string FederationRepos string `binding:"ValidUrl;MaxSize(1024)"`
Interval string Interval string
MirrorAddress string MirrorAddress string
MirrorUsername string MirrorUsername string