mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-27 00:23:41 +09:00 
			
		
		
		
	Update to bluemonday-1.0.6 (#15294)
Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		| @@ -46,7 +46,9 @@ func ReplaceSanitizer() { | ||||
| 	sanitizer.policy.AllowAttrs("checked", "disabled").OnElements("input") | ||||
|  | ||||
| 	// Custom URL-Schemes | ||||
| 	sanitizer.policy.AllowURLSchemes(setting.Markdown.CustomURLSchemes...) | ||||
| 	if len(setting.Markdown.CustomURLSchemes) > 0 { | ||||
| 		sanitizer.policy.AllowURLSchemes(setting.Markdown.CustomURLSchemes...) | ||||
| 	} | ||||
|  | ||||
| 	// Allow keyword markup | ||||
| 	sanitizer.policy.AllowAttrs("class").Matching(regexp.MustCompile(`^` + keywordClass + `$`)).OnElements("span") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user