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