mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
Fixes #3560
This commit is contained in:
@@ -100,6 +100,12 @@ class Web:
|
||||
if content is not None:
|
||||
stream = io.BytesIO(content) # string content
|
||||
|
||||
# Reference: https://github.com/sqlmapproject/sqlmap/issues/3560
|
||||
# Reference: https://stackoverflow.com/a/4677542
|
||||
stream.seek(0, os.SEEK_END)
|
||||
stream.len = stream.tell()
|
||||
stream.seek(0, os.SEEK_SET)
|
||||
|
||||
return self._webFileStreamUpload(stream, destFileName, directory)
|
||||
|
||||
def _webFileStreamUpload(self, stream, destFileName, directory):
|
||||
|
||||
Reference in New Issue
Block a user