Fix XSS for To Table operation and Magic button

This commit is contained in:
j433866 committed 2019-01-31 15:18:37 +00:00
1 parent 6f8a5ea1be
commit 8b44927cb6
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ class ToTable extends Operation {
const [cellDelims, rowDelims, firstRowHeader, format] = args;
// Process the input into a nested array of elements.
const tableData = Utils.parseCSV(input, cellDelims.split(""), rowDelims.split(""));
const tableData = Utils.parseCSV(Utils.escapeHtml(input), cellDelims.split(""), rowDelims.split(""));
if (!tableData.length) return "";