aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go
diff options
context:
space:
mode:
authorFrancis Lavoie <[email protected]>2023-04-20 14:43:51 -0400
committerGitHub <[email protected]>2023-04-20 18:43:51 +0000
commit53b6fab125f3f2f149d59fcfe13b1e8b1735da56 (patch)
tree242a8e721d7ea6fe5c8dddbd090e08ec74d27da0 /modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go
parentc6ac350a3b53feb1dfcc24d82421cd20da61a163 (diff)
downloadcaddy-53b6fab125f3f2f149d59fcfe13b1e8b1735da56.tar.gz
caddy-53b6fab125f3f2f149d59fcfe13b1e8b1735da56.zip
caddyfile: Stricter parsing, error for brace on new line (#5505)
Diffstat (limited to 'modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go')
-rw-r--r--modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go b/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go
index 4687e6865..a24a3ed69 100644
--- a/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go
+++ b/modules/caddyhttp/reverseproxy/fastcgi/caddyfile.go
@@ -373,6 +373,7 @@ func parsePHPFastCGI(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error
// the rest of the config is specified by the user
// using the reverse_proxy directive syntax
+ dispenser.Next() // consume the directive name
err = rpHandler.UnmarshalCaddyfile(dispenser)
if err != nil {
return nil, err