From 6d7dd4af275126f07fda135d1fb897d8494efa7c Mon Sep 17 00:00:00 2001 From: Jeix Date: Wed, 13 Apr 2011 10:55:06 +0200 Subject: shragle fix --- module/plugins/Plugin.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'module/plugins/Plugin.py') diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index 8d9d8b35d..488d05432 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -27,6 +27,7 @@ from os import remove from os import makedirs from os import chmod from os import stat +from os import name as os_name from os.path import exists from os.path import join @@ -348,6 +349,10 @@ class Plugin(object): self.log.warning(_("Setting User and Group failed: %s") % str(e)) name = self.pyfile.name + if os_name == 'nt': + #delete illegal characters + name = name.translate(None, '/\\?%*:|"<>') + filename = save_join(location, name) try: newname = self.req.httpDownload(url, filename, get=get, post=post, ref=ref, chunks=self.getChunkCount(), resume=self.resumeDownload, progressNotify=self.pyfile.progress.setValue) -- cgit v1.2.3