add escape for commas in csv generation

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@151099 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2017-07-15 08:55:38 +00:00
parent c60da0676d
commit 8ac6dd0989
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public class CSVHelpers {
if(isValuePresent){
oneLine.append(CSV_SEPARATOR);
oneLine.append(bean.getValue() != null? bean.getValue() : "");
oneLine.append(bean.getValue() != null? bean.getValue().toString().contains(",") ? "\"" + bean.getValue() + "\"" : bean.getValue() : "");
}
if(isUnitPresent){