소스 검색

fix: kbd xss whitelist

NGPixel 5 년 전
부모
커밋
90fbc62917
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      server/modules/rendering/html-security/renderer.js

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

@@ -18,6 +18,7 @@ module.exports = {
           h5: ['class', 'id', 'style'],
           h6: ['class', 'id', 'style'],
           img: ['alt', 'class', 'draggable', 'height', 'src', 'style', 'width'],
+          kbd: ['class'],
           li: ['class', 'style'],
           mark: ['class', 'style'],
           ol: ['class', 'style'],