secu: remove a balise from sane user input
This commit is contained in:
parent
3cbb491cfc
commit
4f0f221e46
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ module TPS
|
||||||
config.assets.precompile += ['.woff']
|
config.assets.precompile += ['.woff']
|
||||||
|
|
||||||
default_allowed_tags = ActionView::Base.sanitized_allowed_tags
|
default_allowed_tags = ActionView::Base.sanitized_allowed_tags
|
||||||
config.action_view.sanitized_allowed_tags = default_allowed_tags + ['u'] - ['img']
|
config.action_view.sanitized_allowed_tags = default_allowed_tags + ['u'] - ['img', 'a']
|
||||||
|
|
||||||
# ActionDispatch's IP spoofing detection is quite limited, and often rejects
|
# ActionDispatch's IP spoofing detection is quite limited, and often rejects
|
||||||
# legitimate requests from misconfigured proxies (such as mobile telcos).
|
# legitimate requests from misconfigured proxies (such as mobile telcos).
|
||||||
|
|
Loading…
Reference in a new issue