mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-09 14:11:29 +00:00
Minor bug fix to --file-read
This commit is contained in:
@@ -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)):
|
||||||
|
if len(chunk) > 0:
|
||||||
chunk = chunk[0]
|
chunk = chunk[0]
|
||||||
|
else:
|
||||||
|
chunk = ""
|
||||||
|
|
||||||
newFileContent += chunk
|
newFileContent += chunk
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user