Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ea72f9

Browse files
committed
Minor bug fixes to -d
1 parent ccfc9b0 commit 9ea72f9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/request/direct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def direct(query, content=True):
7272
out = list(output)[0][0]
7373
if isinstance(out, str):
7474
out = utf8decode(out)
75-
return out
75+
return getUnicode(out)
7676
else:
7777
return list(output)
7878
else:

plugins/dbms/mysql/filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def stackedReadFile(self, rFile):
6666

6767
length = inject.getValue("SELECT LENGTH(%s) FROM %s" % (self.tblField, self.fileTblName), sort=False, resumeValue=False, charsetType=2)
6868

69-
if not length.isdigit() or not len(length) or length in ( "0", "1" ):
69+
if length is None or not length.isdigit() or not len(length) or length in ( "0", "1" ):
7070
errMsg = "unable to retrieve the content of the "
7171
errMsg += "file '%s'" % rFile
7272
raise sqlmapNoneDataException, errMsg

0 commit comments

Comments
 (0)