Skip to content
Snippets Groups Projects
Commit 7c24b984 authored by Prasad's avatar Prasad
Browse files

Fixed: Escape of double quotes in CSV export.

parent 9b5d6a08
No related branches found
No related tags found
No related merge requests found
......@@ -176,6 +176,10 @@ class Vtiger_ExportData_Action extends Vtiger_Mass_Action {
echo $header;
foreach($entries as $row) {
// Escape double quotes in the value.
foreach ($row as $key => $value) {
$row[$key] = str_replace('"', '""', $value);
}
$line = implode("\",\"",$row);
$line = "\"" .$line;
$line .= "\"\r\n";
......@@ -271,4 +275,4 @@ class Vtiger_ExportData_Action extends Vtiger_Mass_Action {
}
return $arr;
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment