mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
FIX: Don't allow formatting in titles when quoting other topics
This commit is contained in:
parent
d9146de080
commit
3b74c0e3b8
@ -50,7 +50,7 @@ module PrettyText
|
||||
topic = Topic.find_by(id: topic_id)
|
||||
if topic && Guardian.new.can_see?(topic)
|
||||
{
|
||||
title: topic.title,
|
||||
title: Rack::Utils.escape_html(topic.title),
|
||||
href: topic.url
|
||||
}
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user