mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 08:02:36 +09:00 
			
		
		
		
	Fix: url.Values map was not initialized (#14485)
Values map was not initialized, leading to error 500 on submission of initial configuration Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
		@@ -27,6 +27,9 @@ type Flash struct {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (f *Flash) set(name, msg string, current ...bool) {
 | 
					func (f *Flash) set(name, msg string, current ...bool) {
 | 
				
			||||||
 | 
						if f.Values == nil {
 | 
				
			||||||
 | 
							f.Values = make(map[string][]string)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
	isShow := false
 | 
						isShow := false
 | 
				
			||||||
	if (len(current) == 0 && FlashNow) ||
 | 
						if (len(current) == 0 && FlashNow) ||
 | 
				
			||||||
		(len(current) > 0 && current[0]) {
 | 
							(len(current) > 0 && current[0]) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user