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)
|
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
|
||||||
|
|
Loading…
Reference in New Issue