summaryrefslogtreecommitdiffstats
path: root/module/utils.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-10 11:54:48 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-10 11:54:48 +0100
commitacecd5f2f7ea1ade417e833650b2f4ea4ff14f80 (patch)
treec6c7e0ad0b24e11bf28f9ea62de226693f307160 /module/utils.py
parentRe-add some dead crypters (diff)
downloadpyload-acecd5f2f7ea1ade417e833650b2f4ea4ff14f80.tar.xz
Don't remove backslash and colon when save_path on windows
Diffstat (limited to 'module/utils.py')
-rw-r--r--module/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/utils.py b/module/utils.py
index 42dc9e1cc..05ff38a22 100644
--- a/module/utils.py
+++ b/module/utils.py
@@ -36,7 +36,7 @@ def remove_chars(string, repl):
def save_path(name):
#remove some chars
if os.name == 'nt':
- return remove_chars(name, '/\\?%*:|"<>')
+ return remove_chars(name, '/?%*|"<>')
else:
return remove_chars(name, '/\\"')