From ff8fc90ac71b672099da4876053908a85c91b0a6 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 13 Jul 2011 06:44:15 +0000 Subject: [PATCH] bug fix --- doc/THANKS | 3 +++ lib/core/common.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/THANKS b/doc/THANKS index 06bd4ee38..aebb1cda1 100644 --- a/doc/THANKS +++ b/doc/THANKS @@ -541,6 +541,9 @@ buawig Bugtrace for reporting several bugs +Christian S. + for reporting a minor bug + clav for reporting a minor bug diff --git a/lib/core/common.py b/lib/core/common.py index b6a471192..b834c11d7 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -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('"', '""')