Skip to content

Commit 81d1a76

Browse files
committed
Minor bug fix in output manager (dumper) object
1 parent 8e7282f commit 81d1a76

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

doc/THANKS

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ Karl Chen <quarl@cs.berkeley.edu>
2323
for providing with the multithreading patch for the inference
2424
algorithm
2525

26-
Pierre Chifflier <pollux@debian.org>
27-
for uploading the sqlmap 0.6.2 Debian package to the official Debian
28-
project repository
26+
Y P Chien <ypchien@cox.net>
27+
for reporting a minor bug
28+
29+
Pierre Chifflier <pollux@debian.org> and Mark Hymers <ftpmaster@debian.org>
30+
for uploading and accepting the sqlmap Debian package to the official
31+
Debian project repository
2932

3033
Ulises U. Cune <ulises2k@gmail.com>
3134
for reporting a bug

lib/core/dump.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,8 @@ def dbTableValues(self, tableValues):
237237

238238
for column in columns:
239239
if column != "__infos__":
240-
info = tableValues[column]
241-
lines = "-" * (int(info["length"]) + 2)
240+
info = tableValues[column]
241+
lines = "-" * (int(info["length"]) + 2)
242242
separator += "+%s" % lines
243243

244244
separator += "+"
@@ -253,19 +253,21 @@ def dbTableValues(self, tableValues):
253253

254254
for column in columns:
255255
if column != "__infos__":
256-
info = tableValues[column]
256+
info = tableValues[column]
257257
maxlength = int(info["length"])
258-
blank = " " * (maxlength - len(column))
258+
blank = " " * (maxlength - len(column))
259+
259260
self.__write("| %s%s" % (column, blank), n=False)
260261

261262
if not conf.multipleTargets and field == fields:
262263
dataToDumpFile(dumpFP, "\"%s\"" % column)
263-
else:
264+
elif not conf.multipleTargets:
264265
dataToDumpFile(dumpFP, "\"%s\"," % column)
265266

266267
field += 1
267268

268269
self.__write("|\n%s" % separator)
270+
269271
if not conf.multipleTargets:
270272
dataToDumpFile(dumpFP, "\n")
271273

@@ -284,14 +286,15 @@ def dbTableValues(self, tableValues):
284286
blank = " " * (maxlength - len(value))
285287
self.__write("| %s%s" % (value, blank), n=False)
286288

287-
if field == fields:
289+
if not conf.multipleTargets and field == fields:
288290
dataToDumpFile(dumpFP, "\"%s\"" % value)
289-
else:
291+
elif not conf.multipleTargets:
290292
dataToDumpFile(dumpFP, "\"%s\"," % value)
291293

292294
field += 1
293295

294296
self.__write("|")
297+
295298
if not conf.multipleTargets:
296299
dataToDumpFile(dumpFP, "\n")
297300

0 commit comments

Comments
 (0)