mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
bug fix
This commit is contained in:
@@ -880,6 +880,14 @@ def sanitizeAsciiString(string):
|
||||
|
||||
def decloakToNamedTemporaryFile(filepath, name=None):
|
||||
retVal = NamedTemporaryFile()
|
||||
def __del__():
|
||||
try:
|
||||
if hasattr(retVal, 'old_name'):
|
||||
retVal.name = old_name
|
||||
retVal.close()
|
||||
except OSError:
|
||||
pass
|
||||
retVal.__del__ = __del__
|
||||
retVal.write(decloak(filepath))
|
||||
retVal.seek(0)
|
||||
if name:
|
||||
|
||||
Reference in New Issue
Block a user