config: Fix uglyurls map parse

Fixes #12926
This commit is contained in:
Akkuman
2024-10-12 15:48:19 +08:00
committed by Bjørn Erik Pedersen
parent 57151a5e91
commit ea633dd809
2 changed files with 20 additions and 0 deletions

View File

@@ -419,6 +419,8 @@ var allDecoderSetups = map[string]decodeWeight{
p.c.UglyURLs = vv
case string:
p.c.UglyURLs = vv == "true"
case maps.Params:
p.c.UglyURLs = cast.ToStringMapBool(maps.CleanConfigStringMap(vv))
default:
p.c.UglyURLs = cast.ToStringMapBool(v)
}