mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 12:03:45 +08:00
SECURITY: Escape email text for posts containing [details].
This commit is contained in:
parent
2c26998f86
commit
3503271959
|
@ -37,7 +37,7 @@ after_initialize do
|
|||
link = fragment.document.create_element("a")
|
||||
link["href"] = post.url if post
|
||||
link.content = I18n.t("details.excerpt_details")
|
||||
el.replace text + " " + link.to_html
|
||||
el.replace CGI.escapeHTML(text) + " " + link.to_html
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user