소스 검색

fix: add missing html tags to whitelist

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

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

@@ -9,8 +9,10 @@ module.exports = {
           a: ['class', 'id', 'href', 'style', 'target', 'title'],
           a: ['class', 'id', 'href', 'style', 'target', 'title'],
           blockquote: ['class', 'id', 'style'],
           blockquote: ['class', 'id', 'style'],
           code: ['class', 'style'],
           code: ['class', 'style'],
+          details: ['class', 'style'],
           div: ['class', 'id', 'style'],
           div: ['class', 'id', 'style'],
           em: ['class', 'style'],
           em: ['class', 'style'],
+          figure: ['class', 'style'],
           h1: ['class', 'id', 'style'],
           h1: ['class', 'id', 'style'],
           h2: ['class', 'id', 'style'],
           h2: ['class', 'id', 'style'],
           h3: ['class', 'id', 'style'],
           h3: ['class', 'id', 'style'],
@@ -25,8 +27,10 @@ module.exports = {
           p: ['class', 'style'],
           p: ['class', 'style'],
           path: ['d', 'style'],
           path: ['d', 'style'],
           pre: ['class', 'style'],
           pre: ['class', 'style'],
+          section: ['class', 'style'],
           span: ['class', 'style'],
           span: ['class', 'style'],
           strong: ['class', 'style'],
           strong: ['class', 'style'],
+          summary: ['class', 'style'],
           svg: ['width', 'height', 'viewBox', 'preserveAspectRatio', 'style'],
           svg: ['width', 'height', 'viewBox', 'preserveAspectRatio', 'style'],
           table: ['border', 'class', 'id', 'style', 'width'],
           table: ['border', 'class', 'id', 'style', 'width'],
           tbody: ['class', 'style'],
           tbody: ['class', 'style'],