mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-01 12:38:30 +08:00
Allow data-turbolinks attribute in sanitization [SCI-9683]
This commit is contained in:
parent
dd7d95f6c4
commit
fcefb64666
1 changed files with 1 additions and 0 deletions
|
@ -328,6 +328,7 @@ class Constants
|
||||||
config[:attributes][:all] << 'contenteditable'
|
config[:attributes][:all] << 'contenteditable'
|
||||||
config[:attributes]['img'] << 'data-mce-token'
|
config[:attributes]['img'] << 'data-mce-token'
|
||||||
config[:attributes]['img'] << 'data-source-type'
|
config[:attributes]['img'] << 'data-source-type'
|
||||||
|
config[:attributes]['a'] << 'data-turbolinks'
|
||||||
config[:protocols]['img']['src'] << 'data'
|
config[:protocols]['img']['src'] << 'data'
|
||||||
INPUT_SANITIZE_CONFIG = Sanitize::Config.freeze_config(config)
|
INPUT_SANITIZE_CONFIG = Sanitize::Config.freeze_config(config)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue