mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-10-31 07:47:29 +03:00 
			
		
		
		
	fix: encode URLs in json samples linkify (xss)
thanks to @masatokinugawa
This commit is contained in:
		
							parent
							
								
									ffa216ea87
								
							
						
					
					
						commit
						62c01da420
					
				|  | @ -56,7 +56,7 @@ function valueToHTML(value, maxExpandLevel: number) { | |||
|       output += | ||||
|         decorateWithSpan('"', 'token string') + | ||||
|         '<a href="' + | ||||
|         value + | ||||
|         encodeURI(value) + | ||||
|         '">' + | ||||
|         htmlEncode(stringifyStringLiteral(value)) + | ||||
|         '</a>' + | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user