mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	fix: tag contain character ) will http 500 on release page (#1670)
This commit is contained in:
		
							
								
								
									
										2
									
								
								vendor/code.gitea.io/git/repo_tag.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/code.gitea.io/git/repo_tag.go
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -122,7 +122,7 @@ func parseTag(line string, opt TagOption) (*Tag, error) {
 | 
			
		||||
	if start < 0 {
 | 
			
		||||
		return nil, nil
 | 
			
		||||
	}
 | 
			
		||||
	end := strings.IndexByte(left[start+1:], ')')
 | 
			
		||||
	end := strings.LastIndexByte(left[start+1:], ')')
 | 
			
		||||
	if end < 0 {
 | 
			
		||||
		return nil, nil
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user