mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-12 02:22:55 +00:00
bug fix
This commit is contained in:
@@ -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
@@ -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('"', '""')
|
||||
|
||||
Reference in New Issue
Block a user