- Updates import to santize user input
This commit is contained in:
@@ -7,7 +7,8 @@ define(
|
||||
'handlebars',
|
||||
'papaparse',
|
||||
'select2',
|
||||
'asyncqueue'
|
||||
'asyncqueue',
|
||||
'xss'
|
||||
],
|
||||
function (
|
||||
Backbone,
|
||||
@@ -16,7 +17,8 @@ define(
|
||||
MailPoet,
|
||||
Handlebars,
|
||||
Papa,
|
||||
AsyncQueue
|
||||
AsyncQueue,
|
||||
xss
|
||||
) {
|
||||
if (!jQuery('#mailpoet_subscribers_import').length) {
|
||||
return;
|
||||
@@ -355,7 +357,7 @@ define(
|
||||
complete: function (CSV) {
|
||||
for (var rowCount in CSV.data) {
|
||||
var rowData = CSV.data[rowCount].map(function (el) {
|
||||
return el.trim();
|
||||
return filterXSS(el.trim());
|
||||
}),
|
||||
rowColumnCount = rowData.length;
|
||||
// set the number of row elements based on the first non-empty row
|
||||
|
@@ -34,7 +34,8 @@
|
||||
"spectrum-colorpicker": "^1.6.2",
|
||||
"tinymce": "4.1.10",
|
||||
"underscore": "1.8.3",
|
||||
"velocity-animate": "1.2.3"
|
||||
"velocity-animate": "1.2.3",
|
||||
"xss": "^0.2.10"
|
||||
},
|
||||
"devDependencies": {
|
||||
"expose-loader": "latest",
|
||||
|
@@ -126,7 +126,7 @@
|
||||
</td>
|
||||
{{#.}}
|
||||
<td>
|
||||
{{{this}}}
|
||||
{{this}}
|
||||
</td>
|
||||
{{/.}}
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user