Просмотр исходного кода

fix: whitelist task list checkboxes

NGPixel 5 лет назад
Родитель
Сommit
bacbe4f543
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      server/modules/rendering/html-security/renderer.js

+ 2 - 0
server/modules/rendering/html-security/renderer.js

@@ -21,7 +21,9 @@ module.exports = {
           h5: ['class', 'id', 'style'],
           h6: ['class', 'id', 'style'],
           img: ['alt', 'class', 'draggable', 'height', 'src', 'style', 'width'],
+          input: ['class', 'disabled', 'type', 'checked', 'id'],
           kbd: ['class'],
+          label: ['class', 'id', 'for'],
           li: ['class', 'style'],
           mark: ['class', 'style'],
           ol: ['class', 'style'],