From 8ce830d7038cd3b787cfc9527e01d56acf1ff865 Mon Sep 17 00:00:00 2001 From: evilhero Date: Thu, 28 Feb 2013 13:03:26 -0500 Subject: [PATCH] FIX:(#235) Problem with windows updates - sanitizing the tar filename --- mylar/versioncheck.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mylar/versioncheck.py b/mylar/versioncheck.py index fa7b6326..f8ed7ec4 100755 --- a/mylar/versioncheck.py +++ b/mylar/versioncheck.py @@ -187,9 +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] - + + #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