mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-16 02:00:02 +02:00
Backport #26001 by @wxiaoguang Regression of #24832 Fix the bug and add a test for it Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> (cherry picked from commit 4d5e3b937214965e7824f2b5a4fc59a1674ab11c)
This commit is contained in:
parent
de7f99d339
commit
d4fa6a846a
2 changed files with 7 additions and 1 deletions
|
@ -86,7 +86,7 @@ func decodeEnvSectionKey(encoded string) (ok bool, section, key string) {
|
|||
key += remaining
|
||||
}
|
||||
section = strings.ToLower(section)
|
||||
ok = section != "" && key != ""
|
||||
ok = key != ""
|
||||
if !ok {
|
||||
section = ""
|
||||
key = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue