diff options
author | WeidiDeng <[email protected]> | 2023-10-13 14:28:20 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-13 02:28:20 -0400 |
commit | 1f60328e1740143f76bdee598281ebce8c4c8e3f (patch) | |
tree | 8409927dcac23d32129bdf533662174c005f4412 /caddyconfig/caddyfile/parse_test.go | |
parent | 0e204b730aa2b1fa0835336b1117eff8c420f713 (diff) | |
download | caddy-1f60328e1740143f76bdee598281ebce8c4c8e3f.tar.gz caddy-1f60328e1740143f76bdee598281ebce8c4c8e3f.zip |
caddyfile: Fix variadic placeholder false positive when token contains `:` (#5883)
Diffstat (limited to 'caddyconfig/caddyfile/parse_test.go')
-rw-r--r-- | caddyconfig/caddyfile/parse_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/caddyconfig/caddyfile/parse_test.go b/caddyconfig/caddyfile/parse_test.go index b1104edf9..b270f1613 100644 --- a/caddyconfig/caddyfile/parse_test.go +++ b/caddyconfig/caddyfile/parse_test.go @@ -91,6 +91,10 @@ func TestParseVariadic(t *testing.T) { input: "{args[0:10]}", result: true, }, + { + input: "{args[0]}:{args[1]}:{args[2]}", + result: false, + }, } { token := Token{ File: "test", |