diff options
author | Aziz Rmadi <[email protected]> | 2024-01-13 14:24:03 -0600 |
---|---|---|
committer | GitHub <[email protected]> | 2024-01-13 20:24:03 +0000 |
commit | 80acf1bf23890697a12e25f84ae2c6520633da6f (patch) | |
tree | 0bfd9a7bc242bd07d99dbf9e2f98452dd9335e30 /replacer.go | |
parent | c839a98ff527932fd14460829142c486f4531a7b (diff) | |
download | caddy-80acf1bf23890697a12e25f84ae2c6520633da6f.tar.gz caddy-80acf1bf23890697a12e25f84ae2c6520633da6f.zip |
replacer: Fix escaped closing braces (#5995)
Diffstat (limited to 'replacer.go')
-rw-r--r-- | replacer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/replacer.go b/replacer.go index 5d33b7f18..046be867a 100644 --- a/replacer.go +++ b/replacer.go @@ -133,7 +133,7 @@ func (r *Replacer) replace(input, empty string, treatUnknownAsEmpty, errOnEmpty, errOnUnknown bool, f ReplacementFunc, ) (string, error) { - if !strings.Contains(input, string(phOpen)) { + if !strings.Contains(input, string(phOpen)) && !strings.Contains(input, string(phClose)) { return input, nil } |