mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-11 03:16:48 +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