FIX:(#235) Problem with windows updates - sanitizing the tar filename

This commit is contained in:
evilhero 2013-02-28 13:05:27 -05:00
parent 593d85489d
commit d2370255a0
1 changed files with 3 additions and 2 deletions

View File

@ -187,8 +187,9 @@ def update():
except (IOError, URLError):
logger.error("Unable to retrieve new version from "+tar_download_url+", can't update")
return
download_name = data.geturl().split('/')[-1]
#sanitize the filename here...
download_name = data.geturl().split('/')[-1].split('?')[0]
tar_download_path = os.path.join(mylar.PROG_DIR, download_name)