Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 09:54:24 +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)"`
Website string `binding:"ValidUrl;MaxSize(1024)"`
// ToDo: Do we need validation at this point?
FederationRepos string
FederationRepos string `binding:"ValidUrl;MaxSize(1024)"`
Interval string
MirrorAddress string
MirrorUsername string