Revision bc7e27c5
Added by Daniel Lobato Garcia almost 10 years ago
app/helpers/operatingsystems_helper.rb | ||
---|---|---|
end
|
||
|
||
def os_name record, opts = {}
|
||
"#{icon(record, opts)} #{record.to_label}".html_safe
|
||
icon(record, opts).html_safe << record.to_label
|
||
end
|
||
|
||
def os_habtm_family type, obj
|
Also available in: Unified diff
Fixes #6580 - XSS in operating system name/description (CVE-2014-3531)
(cherry picked from commit 98e584f5a7860fb92a9916d5e5ec524372e3f8ae)