fix(import_preview): sanitize preview data
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
cf44c42e6f
commit
2a5b9e45d1
1 changed files with 4 additions and 0 deletions
|
|
@ -120,6 +120,10 @@ frappe.data_import.ImportPreview = class ImportPreview {
|
|||
if (cell == null) {
|
||||
return "";
|
||||
}
|
||||
|
||||
if (typeof cell === "string") {
|
||||
cell = frappe.utils.xss_sanitise(cell);
|
||||
}
|
||||
return cell;
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue