Deprecate Blackfriday and fix a potential deadlock in config

Note that the deadlock has not been seen earlier, in tests on in real Hugo sites.

Fixes #8792
Fixes #8791
This commit is contained in:
Bjørn Erik Pedersen
2021-07-26 11:21:11 +02:00
parent e09d7882c8
commit c7252224c4
2 changed files with 7 additions and 0 deletions

View File

@@ -89,6 +89,7 @@ func (c *defaultConfigProvider) Get(k string) interface{} {
c.mu.RLock()
key, m := c.getNestedKeyAndMap(strings.ToLower(k), false)
if m == nil {
c.mu.RUnlock()
return nil
}
v := m[key]