1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

update gitea.com/macaron/macaron to 1.4.0 (#9608)

This commit is contained in:
6543
2020-01-05 15:27:25 +01:00
committed by Antoine GIRARD
parent 4f54a4628a
commit a5a79f702d
12 changed files with 153 additions and 62 deletions

7
vendor/gopkg.in/ini.v1/key.go generated vendored
View File

@@ -147,10 +147,15 @@ func (k *Key) transformValue(val string) string {
noption := vr[2 : len(vr)-2]
// Search in the same section.
// If not found or found the key itself, then search again in default section.
nk, err := k.s.GetKey(noption)
if err != nil || k == nk {
// Search again in default section.
nk, _ = k.s.f.Section("").GetKey(noption)
if nk == nil {
// Stop when no results found in the default section,
// and returns the value as-is.
break
}
}
// Substitute by new value and take off leading '%(' and trailing ')s'.