support torrents whose name is empty

This commit is contained in:
Arvid Norberg 2011-06-03 08:48:33 +00:00
parent ebba1f3c57
commit 4a914852cc
2 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,7 @@
incoming connection
* added more detailed instrumentation of the disk I/O thread
* support torrents whose name is empty
* fixed connection limit to take web seeds into account as well
* fixed bug when receiving a have message before having the metadata
* fixed python bindings build with disabled DHT support

View File

@ -788,6 +788,7 @@ namespace libtorrent
}
std::string name = name_ent->string_value();
if (name.empty()) name = to_hex(m_info_hash.to_string());
name = sanitize_path(name);
if (!valid_path_element(name))