From 1cbd5e33cb2dc09a3676de120118826a4cbca75e Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 20 Mar 2024 13:16:53 +0100 Subject: [PATCH] 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. --- services/forms/repo_form.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/forms/repo_form.go b/services/forms/repo_form.go index 851124ae7c..da130353df 100644 --- a/services/forms/repo_form.go +++ b/services/forms/repo_form.go @@ -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