summaryrefslogtreecommitdiff
path: root/caddyconfig
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-09-01 21:15:20 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2022-09-01 21:15:44 -0600
commit73d4a8ba02292491fca289b324e89ef8c62fd435 (patch)
treedf0ce2fd72c75b03490c28686402f3f67d9e9eea /caddyconfig
parent7d5108d132d3bccfd8d83bc3fc2dbc46afde20ae (diff)
map: Coerce val to string, fix #4987
Also prevent infinite recursion, and enforce placeholder syntax.
Diffstat (limited to 'caddyconfig')
-rw-r--r--caddyconfig/caddyfile/dispenser.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/caddyconfig/caddyfile/dispenser.go b/caddyconfig/caddyfile/dispenser.go
index b37d232..91bd9a5 100644
--- a/caddyconfig/caddyfile/dispenser.go
+++ b/caddyconfig/caddyfile/dispenser.go
@@ -146,15 +146,15 @@ func (d *Dispenser) NextLine() bool {
//
// Proper use of this method looks like this:
//
-// for nesting := d.Nesting(); d.NextBlock(nesting); {
-// }
+// for nesting := d.Nesting(); d.NextBlock(nesting); {
+// }
//
// However, in simple cases where it is known that the
// Dispenser is new and has not already traversed state
// by a loop over NextBlock(), this will do:
//
-// for d.NextBlock(0) {
-// }
+// for d.NextBlock(0) {
+// }
//
// As with other token parsing logic, a loop over
// NextBlock() should be contained within a loop over