FIX: Don't allow formatting in titles when quoting other topics

This commit is contained in:
Robin Ward 2017-01-09 14:52:45 -05:00
parent d9146de080
commit 3b74c0e3b8
1 changed files with 1 additions and 1 deletions

View File

@ -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