mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
bug fix
This commit is contained in:
parent
950dba5139
commit
c74b920f54
2 changed files with 11 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue