소스 검색

fix: whitelist task list checkboxes

NGPixel 5 년 전
부모
커밋
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'],