Commit 9dbf625ace539fad5250f769074eef61ca8b957f
1 parent
21d8e227
Exists in
staging
and in
4 other branches
Allow image map html tags
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
config/application.rb
@@ -20,10 +20,10 @@ module Noosfero | @@ -20,10 +20,10 @@ module Noosfero | ||
20 | require 'noosfero/plugin' | 20 | require 'noosfero/plugin' |
21 | 21 | ||
22 | # Adds custom attributes to the Set of allowed html attributes for the #sanitize helper | 22 | # Adds custom attributes to the Set of allowed html attributes for the #sanitize helper |
23 | - config.action_view.sanitized_allowed_attributes = 'align', 'border', 'alt', 'vspace', 'hspace', 'width', 'heigth', 'value', 'type', 'data', 'style', 'target', 'codebase', 'archive', 'classid', 'code', 'flashvars', 'scrolling', 'frameborder', 'controls', 'autoplay', 'colspan', 'rowspan' | 23 | + config.action_view.sanitized_allowed_attributes = 'align', 'border', 'alt', 'vspace', 'hspace', 'width', 'heigth', 'value', 'type', 'data', 'style', 'target', 'codebase', 'archive', 'classid', 'code', 'flashvars', 'scrolling', 'frameborder', 'controls', 'autoplay', 'colspan', 'rowspan', 'usemap' |
24 | 24 | ||
25 | # Adds custom tags to the Set of allowed html tags for the #sanitize helper | 25 | # Adds custom tags to the Set of allowed html tags for the #sanitize helper |
26 | - config.action_view.sanitized_allowed_tags = 'object', 'embed', 'param', 'table', 'tr', 'th', 'td', 'applet', 'comment', 'iframe', 'audio', 'video', 'source' | 26 | + config.action_view.sanitized_allowed_tags = 'object', 'embed', 'param', 'table', 'tr', 'th', 'td', 'applet', 'comment', 'iframe', 'audio', 'video', 'source', 'map', 'area' |
27 | 27 | ||
28 | config.action_controller.include_all_helpers = false | 28 | config.action_controller.include_all_helpers = false |
29 | 29 |