diff --git a/modules/Vtiger/actions/ExportData.php b/modules/Vtiger/actions/ExportData.php index 737775290901f328c6f1d4d87a4ee6506832187b..d43d99546e9d12c702e5eb45c09b0dc76fb21fe6 100644 --- a/modules/Vtiger/actions/ExportData.php +++ b/modules/Vtiger/actions/ExportData.php @@ -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 +}