Fix "concurrent map iteration and map write" in pages from data

Fixes #13254
This commit is contained in:
Bjørn Erik Pedersen
2025-01-30 18:34:50 +01:00
parent 33b46d8a41
commit 329b2342f0
3 changed files with 48 additions and 2 deletions

View File

@@ -158,8 +158,11 @@ func (p *PageConfig) Compile(basePath string, pagesFromData bool, ext string, lo
if p.Params == nil {
p.Params = make(maps.Params)
} else if pagesFromData {
p.Params = maps.PrepareParamsClone(p.Params)
} else {
maps.PrepareParams(p.Params)
}
maps.PrepareParams(p.Params)
if p.Content.Markup == "" && p.Content.MediaType == "" {
if ext == "" {