support torrents whose name is empty
This commit is contained in:
@@ -87,6 +87,7 @@
|
|||||||
incoming connection
|
incoming connection
|
||||||
* added more detailed instrumentation of the disk I/O thread
|
* 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 connection limit to take web seeds into account as well
|
||||||
* fixed bug when receiving a have message before having the metadata
|
* fixed bug when receiving a have message before having the metadata
|
||||||
* fixed python bindings build with disabled DHT support
|
* fixed python bindings build with disabled DHT support
|
||||||
|
@@ -788,6 +788,7 @@ namespace libtorrent
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string name = name_ent->string_value();
|
std::string name = name_ent->string_value();
|
||||||
|
if (name.empty()) name = to_hex(m_info_hash.to_string());
|
||||||
name = sanitize_path(name);
|
name = sanitize_path(name);
|
||||||
|
|
||||||
if (!valid_path_element(name))
|
if (!valid_path_element(name))
|
||||||
|
Reference in New Issue
Block a user