mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 04:27:05 +08:00
FIX: Don't allow formatting in titles when quoting other topics
This commit is contained in:
@ -50,7 +50,7 @@ module PrettyText
|
|||||||
topic = Topic.find_by(id: topic_id)
|
topic = Topic.find_by(id: topic_id)
|
||||||
if topic && Guardian.new.can_see?(topic)
|
if topic && Guardian.new.can_see?(topic)
|
||||||
{
|
{
|
||||||
title: topic.title,
|
title: Rack::Utils.escape_html(topic.title),
|
||||||
href: topic.url
|
href: topic.url
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user