From d2370255a0d3a82b4879fcb380e5faf78515521e Mon Sep 17 00:00:00 2001 From: evilhero Date: Thu, 28 Feb 2013 13:05:27 -0500 Subject: [PATCH] FIX:(#235) Problem with windows updates - sanitizing the tar filename --- mylar/versioncheck.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mylar/versioncheck.py b/mylar/versioncheck.py index 2dfd759b..4384571b 100755 --- a/mylar/versioncheck.py +++ b/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)