SECURITY: strip HTML tags in topic title in email digest

This commit is contained in:
Arpit Jalan
2016-03-08 20:08:23 +05:30
parent 6c1d5b8cd3
commit dde91a54dc
2 changed files with 4 additions and 3 deletions

View File

@ -74,8 +74,9 @@ module ApplicationHelper
end
end
def unescape_emoji(title)
def format_topic_title(title)
PrettyText.unescape_emoji(title)
strip_tags(title)
end
def with_format(format, &block)