Fix issue with downloaded torrent temp files on windows which had illegal characters.

This commit is contained in:
Chase Sterling 2013-01-20 16:26:55 -05:00
parent 763f5de904
commit a992d8685f
2 changed files with 2 additions and 2 deletions

View File

@ -104,6 +104,7 @@
* Fix the Open Folder option not working with non-ascii paths * Fix the Open Folder option not working with non-ascii paths
* Fix the daemon starting with config dir containing spaces * Fix the daemon starting with config dir containing spaces
* Fix Windows tray submenu items requiring right-click instead of left-click * Fix Windows tray submenu items requiring right-click instead of left-click
* Fix issue with adding some torrents with illegal characters via url in gtk client
==== OS X ==== ==== OS X ====
* Fix Open File/Folder option * Fix Open File/Folder option

View File

@ -690,8 +690,7 @@ class AddTorrentDialog(component.Component):
# Create a tmp file path # Create a tmp file path
import tempfile import tempfile
import os.path (tmp_handle, tmp_file) = tempfile.mkstemp()
tmp_file = os.path.join(tempfile.gettempdir(), url.split("/")[-1])
def on_part(data, current_length, total_length): def on_part(data, current_length, total_length):
if total_length: if total_length: