mirror of
https://github.com/go-ini/ini.git
synced 2026-06-19 21:46:45 +02:00
key: keys should not consider themselves for recursion read (#130)
This commit is contained in:
@@ -114,7 +114,7 @@ func (k *Key) transformValue(val string) string {
|
|||||||
|
|
||||||
// Search in the same section.
|
// Search in the same section.
|
||||||
nk, err := k.s.GetKey(noption)
|
nk, err := k.s.GetKey(noption)
|
||||||
if err != nil {
|
if err != nil || k == nk {
|
||||||
// Search again in default section.
|
// Search again in default section.
|
||||||
nk, _ = k.s.f.Section("").GetKey(noption)
|
nk, _ = k.s.f.Section("").GetKey(noption)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user