diff options
author | 卜木 <[email protected]> | 2021-05-31 02:25:37 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-30 20:25:37 +0200 |
commit | ee733085b7f5d3f2aef1667901ab6ecb8041d699 (patch) | |
tree | fc0d309a441c40bd6b33b9ed015fbd06f7b1b25a /config/env.go | |
parent | 01758f99b915f34fe7ca4621e4d1ee09efe385b1 (diff) | |
download | hugo-ee733085b7f5d3f2aef1667901ab6ecb8041d699.tar.gz hugo-ee733085b7f5d3f2aef1667901ab6ecb8041d699.zip |
config: Fix env split to allow = character in values
Fixes #8589
Diffstat (limited to 'config/env.go')
-rw-r--r-- | config/env.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/env.go b/config/env.go index f482cd247..1e7d47216 100644 --- a/config/env.go +++ b/config/env.go @@ -41,7 +41,7 @@ func SetEnvVars(oldVars *[]string, keyValues ...string) { } func SplitEnvVar(v string) (string, string) { - parts := strings.Split(v, "=") + parts := strings.SplitN(v, "=", 2) return parts[0], parts[1] } |