mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
SECURITY: escape title HTML for inline onebox
This commit is contained in:
@ -655,7 +655,7 @@ class CookedPostProcessor
|
||||
)
|
||||
|
||||
if title = inline_onebox&.dig(:title)
|
||||
element.children = title
|
||||
element.children = CGI.escapeHTML(title)
|
||||
element.add_class(INLINE_ONEBOX_CSS_CLASS)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user