mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-30 11:06:37 -04:00
config.go: fix CDN_PREFIX sanitisation typo
This commit is contained in:
@ -69,7 +69,7 @@ func configParse() error {
|
|||||||
os.Setenv("CDN_PREFIX", os.Getenv("ORIGIN"))
|
os.Setenv("CDN_PREFIX", os.Getenv("ORIGIN"))
|
||||||
}
|
}
|
||||||
|
|
||||||
os.Setenv("CDN_PREFIX", strings.TrimSuffix(os.Getenv("ORIGIN"), "/"))
|
os.Setenv("CDN_PREFIX", strings.TrimSuffix(os.Getenv("CDN_PREFIX"), "/"))
|
||||||
os.Setenv("CDN_PREFIX", addHttpIfAbsent(os.Getenv("CDN_PREFIX")))
|
os.Setenv("CDN_PREFIX", addHttpIfAbsent(os.Getenv("CDN_PREFIX")))
|
||||||
|
|
||||||
if os.Getenv("FORBID_NEW_OWNERS") != "true" && os.Getenv("FORBID_NEW_OWNERS") != "false" {
|
if os.Getenv("FORBID_NEW_OWNERS") != "true" && os.Getenv("FORBID_NEW_OWNERS") != "false" {
|
||||||
|
Reference in New Issue
Block a user