Allow data attributes in html sanitization [SCI-8158] (#5159)

This commit is contained in:
Alex Kriuchykhin 2023-03-16 18:17:18 +01:00 committed by GitHub
parent b5100269cc
commit bd670bb177
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -330,7 +330,9 @@ class Constants
).freeze
config = Sanitize::Config::RELAXED.deep_dup
config[:attributes]['a'] << 'id'
config[:attributes][:all] << 'id'
config[:attributes][:all] << 'contenteditable'
config[:attributes][:all] << :data
INPUT_SANITIZE_CONFIG = Sanitize::Config.freeze_config(config)
REPOSITORY_DEFAULT_PAGE_SIZE = 10