mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
Fixes #1415
This commit is contained in:
parent
c59ead36ce
commit
2cea977e12
|
@ -3871,13 +3871,18 @@ def decloakToTemp(filename):
|
|||
"""
|
||||
|
||||
content = decloak(filename)
|
||||
_ = os.path.split(filename[:-1])[-1]
|
||||
|
||||
_ = utf8encode(os.path.split(filename[:-1])[-1])
|
||||
|
||||
prefix, suffix = os.path.splitext(_)
|
||||
prefix = prefix.split(os.extsep)[0]
|
||||
|
||||
handle, filename = tempfile.mkstemp(prefix=prefix, suffix=suffix)
|
||||
os.close(handle)
|
||||
|
||||
with open(filename, "w+b") as f:
|
||||
f.write(content)
|
||||
|
||||
return filename
|
||||
|
||||
def prioritySortColumns(columns):
|
||||
|
|
Loading…
Reference in New Issue
Block a user