Navigation Menu

Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Commit

Permalink
FIX:(#235) Problem with windows updates - sanitizing the tar filename
Browse files Browse the repository at this point in the history
  • Loading branch information
evilhero committed Feb 28, 2013
1 parent 593d854 commit d237025
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mylar/versioncheck.py
Expand Up @@ -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)

Expand Down

0 comments on commit d237025

Please sign in to comment.