fixes js injection for proposal description
This commit is contained in:
@@ -40,6 +40,10 @@ class Proposal < ActiveRecord::Base
|
|||||||
cached_votes_up/flags_count.to_f < 5
|
cached_votes_up/flags_count.to_f < 5
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def description
|
||||||
|
super.try :html_safe
|
||||||
|
end
|
||||||
|
|
||||||
def tag_list_with_limit(limit = nil)
|
def tag_list_with_limit(limit = nil)
|
||||||
return tags if limit.blank?
|
return tags if limit.blank?
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user