Fixes #22335: Adds filename extension to tempfile for Vault
This commit is contained in:
parent
1f962bd937
commit
f787be3597
1 changed files with 2 additions and 1 deletions
|
@ -662,7 +662,8 @@ class VaultEditor:
|
|||
existing_data=None, force_save=False, vault_id=None):
|
||||
|
||||
# Create a tempfile
|
||||
fd, tmp_path = tempfile.mkstemp()
|
||||
root, ext = os.path.splitext(os.path.realpath(filename))
|
||||
fd, tmp_path = tempfile.mkstemp(suffix=ext)
|
||||
os.close(fd)
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue