Fix #2112 : World readable tmp directory in json_api
This commit is contained in:
parent
5188750332
commit
b34e38df57
@ -664,7 +664,8 @@ class WebApi(JSONComponent):
|
||||
log.error("Reason: %s", result.getErrorMessage())
|
||||
return result
|
||||
|
||||
tmp_file = os.path.join(tempfile.gettempdir(), url.split("/")[-1])
|
||||
tempdir = tempfile.mkdtemp(prefix="delugeweb-")
|
||||
tmp_file = os.path.join(tempdir, url.split("/")[-1])
|
||||
log.debug("filename: %s", tmp_file)
|
||||
headers = {}
|
||||
if cookie:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user