mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-11-04 08:02:26 -06:00 
			
		
		
		
	[chore]: Bump github.com/microcosm-cc/bluemonday from 1.0.23 to 1.0.24 (#1843)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								f620ee8da9
							
						
					
				
			
			
				commit
				
					
						049b02aab1
					
				
			
		
					 5 changed files with 22 additions and 4 deletions
				
			
		
							
								
								
									
										6
									
								
								vendor/github.com/microcosm-cc/bluemonday/sanitize.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								vendor/github.com/microcosm-cc/bluemonday/sanitize.go
									
										
									
										generated
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -852,6 +852,7 @@ func (p *Policy) sanitizeStyles(attr html.Attribute, elementName string) html.At
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	//Add semi-colon to end to fix parsing issue
 | 
			
		||||
	attr.Val = strings.TrimRight(attr.Val, " ")
 | 
			
		||||
	if len(attr.Val) > 0 && attr.Val[len(attr.Val)-1] != ';' {
 | 
			
		||||
		attr.Val = attr.Val + ";"
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			@ -969,6 +970,11 @@ func (p *Policy) validURL(rawurl string) (string, bool) {
 | 
			
		|||
		}
 | 
			
		||||
 | 
			
		||||
		if u.Scheme != "" {
 | 
			
		||||
			for _, r := range p.allowURLSchemeRegexps {
 | 
			
		||||
				if r.MatchString(u.Scheme) {
 | 
			
		||||
					return u.String(), true
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			urlPolicies, ok := p.allowURLSchemes[u.Scheme]
 | 
			
		||||
			if !ok {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue