diff options
Diffstat (limited to 'pyload/utils/__init__.py')
-rw-r--r-- | pyload/utils/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/utils/__init__.py b/pyload/utils/__init__.py index 06582708b..367aed5be 100644 --- a/pyload/utils/__init__.py +++ b/pyload/utils/__init__.py @@ -61,9 +61,9 @@ def safe_filename(name): name = name.encode('ascii', 'replace') # Non-ASCII chars usually breaks file saving. Replacing. if os.name == 'nt': return remove_chars(name, u'\00\01\02\03\04\05\06\07\10\11\12\13\14\15\16\17\20\21\22\23\24\25\26\27\30\31\32' - u'\33\34\35\36\37/\\?%*:|"<>') + u'\33\34\35\36\37/?%*|"<>') else: - return remove_chars(name, u'\0/\\"') + return remove_chars(name, u'\0\\"') #: Deprecated method def save_path(name): @@ -87,7 +87,7 @@ if sys.getfilesystemencoding().startswith('ANSI'): try: string = string.encode('utf-8') finally: - return string + return save_path(string) fs_decode = decode #decode utf8 |