Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR fix field escaping in CSV export of TableListField (from r96157…

…) (from r98135)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102607 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit 4f461e4b99cbe04b92cc80da287572eafaf3fc2a 1 parent f60c080
@chillu chillu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  forms/TableListField.php
View
2  forms/TableListField.php
@@ -971,7 +971,7 @@ function generateExportFileData(&$numColumns, &$numRows) {
}
$value = str_replace(array("\r", "\n"), "\n", $value);
- $tmpColumnData = "\"" . str_replace("\"", "\"\"", $value) . "\"";
+ $tmpColumnData = '"' . str_replace('"', '\"', $value) . '"';
$columnData[] = $tmpColumnData;
}
$fileData .= implode($separator, $columnData);
Please sign in to comment.
Something went wrong with that request. Please try again.