mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 12:42:50 +00:00
nginx or browser is not happy with backslash
This commit is contained in:
parent
cccd6c23aa
commit
954abcce76
@ -78,7 +78,7 @@ def ensure_safe_name(filename):
|
|||||||
elif filename == '..':
|
elif filename == '..':
|
||||||
return '. .'
|
return '. .'
|
||||||
else:
|
else:
|
||||||
return filename.replace('/', '\\')
|
return filename.replace('/', '\\').replace('\\', '_')
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user