Sanitize values for CSV. #7697

Merged
Ruk33 merged 2 commits from 7692-transaction-export-creates-invalid-csv-file into master 2022-10-17 17:07:33 +02:00
Showing only changes of commit c40c382d90 - Show all commits

View file

@ -35,7 +35,7 @@ const parseCsv = (data, filters = []) => {
// Apply filters
Object.entries(item).forEach(([key, value]) => {
if (!filters.includes(key)) {
const sanitizedValue = '"' + String(value).replaceAll('"', '\\"') + '"';
const sanitizedValue = '"' + value + '"';
row.push(sanitizedValue);
}
});