summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2011-12-01 18:48:20 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2011-12-01 23:49:46 +0000
commitd96fae520d3913ea0938ff749c95f1ac97165911 (patch)
tree45e02ed29a6bd18d0c6a84e494135edbb5bff822
parentd3c3d64cd4ac8cef6c6f6ee8d21b2ff6384d4465 (diff)
downloaddeluge-d96fae520d3913ea0938ff749c95f1ac97165911.zip
deluge-d96fae520d3913ea0938ff749c95f1ac97165911.tar.gz
deluge-d96fae520d3913ea0938ff749c95f1ac97165911.tar.bz2
Fix #1976 : Trailing newlines in move_storage
-rw-r--r--deluge/core/torrent.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py
index 6764f08..4712a1c 100644
--- a/deluge/core/torrent.py
+++ b/deluge/core/torrent.py
@@ -840,6 +840,8 @@ class Torrent(object):
# String is already unicode
dest_u = dest
+ dest_u = sanitize_filepath(dest_u)
+
if not os.path.exists(dest_u):
try:
# Try to make the destination path if it doesn't exist