diff options
author | Timm <kaspth@gmail.com> | 2014-05-27 14:22:48 +0200 |
---|---|---|
committer | Timm <kaspth@gmail.com> | 2014-06-16 21:04:24 +0200 |
commit | bcd71b4c9ad746ac1f49fb2adea6836f16852960 (patch) | |
tree | 136c53a6832c7b8d213b34e5ac5034da46596825 /actionview | |
parent | e438c090ae2b1dbfb9a44481a9cc7df55bd3139f (diff) | |
download | rails-bcd71b4c9ad746ac1f49fb2adea6836f16852960.tar.gz rails-bcd71b4c9ad746ac1f49fb2adea6836f16852960.tar.bz2 rails-bcd71b4c9ad746ac1f49fb2adea6836f16852960.zip |
Don't splat arguments to allowed tags or attributes.
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/helpers/sanitize_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/sanitize_helper.rb b/actionview/lib/action_view/helpers/sanitize_helper.rb index d4d3b0275d..168f327a87 100644 --- a/actionview/lib/action_view/helpers/sanitize_helper.rb +++ b/actionview/lib/action_view/helpers/sanitize_helper.rb @@ -190,7 +190,7 @@ module ActionView # config.action_view.sanitized_allowed_tags = 'table', 'tr', 'td' # end # - def sanitized_allowed_tags=(*tags) + def sanitized_allowed_tags=(tags) Rails::Html::WhiteListSanitizer.allowed_tags = tags end @@ -200,7 +200,7 @@ module ActionView # config.action_view.sanitized_allowed_attributes = ['onclick', 'longdesc'] # end # - def sanitized_allowed_attributes=(*attributes) + def sanitized_allowed_attributes=(attributes) Rails::Html::WhiteListSanitizer.allowed_attributes = attributes end end |