fixed bug when handling malformed webseed urls and an http proxy

This commit is contained in:
Arvid Norberg 2009-06-09 16:00:10 +00:00
parent 8256a5628d
commit cfbcacce79
2 changed files with 6 additions and 2 deletions

View File

@ -50,6 +50,10 @@
* improved support for sparse files on windows
* added ability to give seeding torrents preference to active slots
release 0.14.5
* fixed bug when handling malformed webseed urls and an http proxy
release 0.14.4
* connect candidate calculation fix

View File

@ -167,9 +167,9 @@ namespace libtorrent
// handle incorrect .torrent files which are multi-file
// but have web seeds not ending with a slash
if (!single_file_request && (m_path.empty() || m_path[m_path.size() - 1] != '/'))
{
m_path += "/";
}
if (!single_file_request && (m_url.empty() || m_url[m_url.size() - 1] != '/'))
m_url += "/";
torrent_info const& info = t->torrent_file();