mirror of
https://github.com/codex-storage/deluge.git
synced 2025-03-01 11:30:43 +00:00
Fix #1498: Use os.path.normpath on new_folder to remove any double slashes or other problems that could be in the string
This commit is contained in:
parent
4d2a0b1856
commit
25e58bc8a2
@ -889,8 +889,8 @@ class Torrent(object):
|
|||||||
log.error("Attempting to rename a folder with an invalid folder name: %s", new_folder)
|
log.error("Attempting to rename a folder with an invalid folder name: %s", new_folder)
|
||||||
return
|
return
|
||||||
|
|
||||||
if new_folder[-1:] != "/":
|
# Make sure the new folder path is nice and has a trailing slash
|
||||||
new_folder += "/"
|
new_folder = os.path.norm(new_folder) + "/"
|
||||||
|
|
||||||
wait_on_folder = (folder, new_folder, [])
|
wait_on_folder = (folder, new_folder, [])
|
||||||
for f in self.get_files():
|
for f in self.get_files():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user