bug dans l'échappement des valeurs

This commit is contained in:
Jephté Clain 2014-01-21 13:09:10 +04:00
parent 0b2c1b4900
commit 39679c1323
1 changed files with 1 additions and 1 deletions

View File

@ -2294,7 +2294,7 @@ function array_formatcsv2(fields, colsep, mvsep, qchar, echar, count, indic
if (echar != "") gsub(qchar, quote_subrepl(echar) "&", value); if (echar != "") gsub(qchar, quote_subrepl(echar) "&", value);
else gsub(qchar, "&&", value); else gsub(qchar, "&&", value);
} }
if (qchar != "" && (index(value, mvsep) != 0 || index(value, colsep) != 0 || __csv_should_quote(value))) { if (qchar != "" && (index(value, mvsep) != 0 || index(value, colsep) != 0 || index(value, qchar) != 0 || __csv_should_quote(value))) {
line = line qchar value qchar line = line qchar value qchar
} else { } else {
line = line value line = line value