Merge pull request #1995 from opencloud-eu/enforce-server-url-trailing-slash

fix: enforce trailing slash for server url
This commit is contained in:
Benedikt Kulmann
2025-12-09 16:16:06 +01:00
committed by GitHub

View File

@@ -136,6 +136,9 @@ func (p Web) getPayload() (payload []byte, err error) {
p.config.Web.Config.Apps = make([]string, 0)
}
// ensure that the server url has a trailing slash
p.config.Web.Config.Server = strings.TrimRight(p.config.Web.Config.Server, "/") + "/"
return json.Marshal(p.config.Web.Config)
}