mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 16:32:23 +01:00
Minor bug fix to --file-read
This commit is contained in:
parent
decab6642d
commit
fbf8e7f32d
1 changed files with 4 additions and 1 deletions
|
|
@ -289,7 +289,10 @@ class Filesystem:
|
||||||
|
|
||||||
for chunk in fileContent:
|
for chunk in fileContent:
|
||||||
if isinstance(chunk, (list, tuple, set)):
|
if isinstance(chunk, (list, tuple, set)):
|
||||||
chunk = chunk[0]
|
if len(chunk) > 0:
|
||||||
|
chunk = chunk[0]
|
||||||
|
else:
|
||||||
|
chunk = ""
|
||||||
|
|
||||||
newFileContent += chunk
|
newFileContent += chunk
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue