html encoding fixed
This commit is contained in:
parent
622dce7924
commit
41d7a03748
|
@ -38,7 +38,7 @@ namespace :announcement_link_widget do
|
|||
index = common_tags_frontend.index{|t| t["tag-id"] == name}
|
||||
ctf = common_tags_frontend[index]
|
||||
if ann.title_translations[locale.to_s] != ""
|
||||
ctf["announcements"] << {"title" => ann.title_translations[locale.to_s],"link"=>OrbitHelper.widget_item_url(ann.to_param)}
|
||||
ctf["announcements"] << {"title" => HTMLEntities.new.encode(ann.title_translations[locale.to_s]),"link"=>OrbitHelper.widget_item_url(ann.to_param)}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue