Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit d2370255a0d3a82b4879fcb380e5faf78515521e 1 parent 593d854
@evilhero authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 mylar/versioncheck.py
View
5 mylar/versioncheck.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.