mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-30 22:11:07 +00:00 
			
		
		
		
	Backport #26778 by @harryzcy Co-authored-by: Chongyi Zheng <git@zcy.dev> Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
		
					parent
					
						
							
								3bab20491e
							
						
					
				
			
			
				commit
				
					
						4013f3f600
					
				
			
		
					 3 changed files with 11 additions and 13 deletions
				
			
		|  | @ -221,7 +221,7 @@ func loadServiceFrom(rootCfg ConfigProvider) { | |||
| 	Service.UserDeleteWithCommentsMaxTime = sec.Key("USER_DELETE_WITH_COMMENTS_MAX_TIME").MustDuration(0) | ||||
| 	sec.Key("VALID_SITE_URL_SCHEMES").MustString("http,https") | ||||
| 	Service.ValidSiteURLSchemes = sec.Key("VALID_SITE_URL_SCHEMES").Strings(",") | ||||
| 	schemes := make([]string, len(Service.ValidSiteURLSchemes)) | ||||
| 	schemes := make([]string, 0, len(Service.ValidSiteURLSchemes)) | ||||
| 	for _, scheme := range Service.ValidSiteURLSchemes { | ||||
| 		scheme = strings.ToLower(strings.TrimSpace(scheme)) | ||||
| 		if scheme != "" { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue