Allow data-turbolinks attribute in sanitization [SCI-9683]

This commit is contained in:
Martin Artnik 2023-11-10 14:33:50 +01:00
parent dd7d95f6c4
commit fcefb64666

View file

@ -328,6 +328,7 @@ class Constants
config[:attributes][:all] << 'contenteditable'
config[:attributes]['img'] << 'data-mce-token'
config[:attributes]['img'] << 'data-source-type'
config[:attributes]['a'] << 'data-turbolinks'
config[:protocols]['img']['src'] << 'data'
INPUT_SANITIZE_CONFIG = Sanitize::Config.freeze_config(config)