mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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