summaryrefslogtreecommitdiffstats
path: root/module/plugins/Plugin.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-04-24 21:05:09 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-04-24 21:05:09 +0200
commit5d804ae1c6e6b35966f0886a4b27602f4f7e1aee (patch)
treef2cce5dd0b588a2704ab48a3751e0b59bda5f4a7 /module/plugins/Plugin.py
parentparse content disposition (diff)
downloadpyload-5d804ae1c6e6b35966f0886a4b27602f4f7e1aee.tar.xz
fixes char replacement
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r--module/plugins/Plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py
index 5607b8331..482bb0e45 100644
--- a/module/plugins/Plugin.py
+++ b/module/plugins/Plugin.py
@@ -38,7 +38,7 @@ if os.name != "nt":
from itertools import islice
-from module.utils import save_join, decode
+from module.utils import save_join, decode, removeChars
def chunks(iterable, size):
it = iter(iterable)
@@ -351,7 +351,7 @@ class Plugin(object):
name = self.pyfile.name
if os_name == 'nt':
#delete illegal characters
- name = name.translate(None, '/\\?%*:|"<>')
+ name = removeChars(name, '/\\?%*:|"<>')
filename = save_join(location, name)
try: