support torrents whose name is empty
This commit is contained in:
parent
ebba1f3c57
commit
4a914852cc
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue