This commit is contained in:
Miroslav Stampar
2011-07-13 06:44:15 +00:00
parent 9c694ce3ec
commit ff8fc90ac7
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -541,6 +541,9 @@ buawig <[email protected]>
Bugtrace <[email protected]>
for reporting several bugs
Christian S. <[email protected]>
for reporting a minor bug
clav <[email protected]>
for reporting a minor bug
+1 -1
View File
@@ -2785,7 +2785,7 @@ def safeCSValue(value):
retVal = value
if isinstance(retVal, basestring):
if retVal and isinstance(retVal, basestring):
if not (retVal[0] == retVal[-1] == '"'):
if any(map(lambda x: x in retVal, ['"', ',', '\n'])):
retVal = '"%s"' % retVal.replace('"', '""')