mirror of
https://github.com/evilhero/mylar
synced 2024-12-24 00:32:47 +00:00
FIX:(#235) Problem with windows updates - sanitizing the tar filename
This commit is contained in:
parent
1169196a96
commit
8ce830d703
1 changed files with 3 additions and 3 deletions
|
@ -188,8 +188,8 @@ def update():
|
|||
logger.error("Unable to retrieve new version from "+tar_download_url+", can't update")
|
||||
return
|
||||
|
||||
download_name = data.geturl().split('/')[-1]
|
||||
|
||||
#try sanitizing the name here...
|
||||
download_name = data.geturl().split('/')[-1].split('?')[0]
|
||||
tar_download_path = os.path.join(mylar.PROG_DIR, download_name)
|
||||
|
||||
# Save tar to disk
|
||||
|
|
Loading…
Reference in a new issue