summaryrefslogtreecommitdiffstats
path: root/module/utils.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-22 20:04:29 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-22 20:04:29 +0100
commit0de6e675bb0c5a4adb79d16df55ada3071825ad5 (patch)
tree9ff782ba4c41873c8c7d06b239166d8a0806b335 /module/utils.py
parentRevert plugins to stable (diff)
downloadpyload-0de6e675bb0c5a4adb79d16df55ada3071825ad5.tar.xz
Revert remaining modules
Diffstat (limited to 'module/utils.py')
-rw-r--r--module/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/utils.py b/module/utils.py
index 4406eafde..8748b7693 100644
--- a/module/utils.py
+++ b/module/utils.py
@@ -36,9 +36,9 @@ 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, '\\"')
+ return remove_chars(name, '/\\"')
def save_join(*args):
@@ -54,7 +54,7 @@ if sys.getfilesystemencoding().startswith('ANSI'):
try:
string = string.encode('utf-8')
finally:
- return save_path(string)
+ return string
fs_decode = decode #decode utf8