mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
SECURITY: category badges should HTML escape names
This commit is contained in:
@@ -217,7 +217,7 @@ class Category < ActiveRecord::Base
|
||||
|
||||
@@cache ||= LruRedux::ThreadSafeCache.new(1000)
|
||||
@@cache.getset(self.description) do
|
||||
Nokogiri::HTML.fragment(self.description).text.strip
|
||||
Nokogiri::HTML.fragment(self.description).text.strip.html_safe
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user