mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	#1891 attempt to fix expected invalid CSRF token
- Remove unused config settings `[picture] service`
This commit is contained in:
		@@ -131,7 +131,6 @@ var (
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Picture settings
 | 
			
		||||
	PictureService   string
 | 
			
		||||
	AvatarUploadPath string
 | 
			
		||||
	GravatarSource   string
 | 
			
		||||
	DisableGravatar  bool
 | 
			
		||||
@@ -448,7 +447,6 @@ func NewContext() {
 | 
			
		||||
	ThemeColorMetaTag = sec.Key("THEME_COLOR_META_TAG").MustString("#ff5343")
 | 
			
		||||
 | 
			
		||||
	sec = Cfg.Section("picture")
 | 
			
		||||
	PictureService = sec.Key("SERVICE").In("server", []string{"server"})
 | 
			
		||||
	AvatarUploadPath = sec.Key("AVATAR_UPLOAD_PATH").MustString(path.Join(AppDataPath, "avatars"))
 | 
			
		||||
	forcePathSeparator(AvatarUploadPath)
 | 
			
		||||
	if !filepath.IsAbs(AvatarUploadPath) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user