mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-22 23:03:00 +08:00
Allow data attributes in html sanitization [SCI-8158] (#5159)
This commit is contained in:
parent
b5100269cc
commit
bd670bb177
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue