Browse Source

Merge pull request #915 from weseek/fix/709-xss-breaks-plantuml-arrows

add '-' to whitelist
Yuki Takei 7 years ago
parent
commit
cb3c36a3ed
2 changed files with 2 additions and 1 deletions
  1. 1 0
      CHANGES.md
  2. 1 1
      src/lib/service/xss/recommendedXssWhiteList.js

+ 1 - 0
CHANGES.md

@@ -2,6 +2,7 @@
 
 ## 3.4.5-RC
 
+* Fix: Xss filter breaks PlantUML arrows
 * Support: Support growi-plugin-lsx@2.2.0
 * Support: Upgrade libs
     * growi-commons

+ 1 - 1
src/lib/service/xss/recommendedXssWhiteList.js

@@ -5,7 +5,7 @@
  */
 
 const tags = [
-  'a', 'b', 'blockquote', 'blockquote', 'code', 'del', 'dd', 'dl', 'dt', 'em',
+  '-', 'a', 'b', 'blockquote', 'blockquote', 'code', 'del', 'dd', 'dl', 'dt', 'em',
   'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'i', 'img', 'kbd', 'li', 'ol', 'p', 'pre',
   's', 'sup', 'sub', 'strong', 'strike', 'ul', 'br', 'hr', 'span', 'div', 'iframe',
   'table', 'thead', 'tbody', 'tfoot', 'th', 'td', 'tr', 'colgroup', 'col',