1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-22 07:42:37 +00:00

fix: escape single file torrent name (#6846)

This commit is contained in:
Yat Ho 2024-05-24 23:08:33 +08:00 committed by GitHub
parent 6c1cee5f79
commit 459c8d3791
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -522,7 +522,7 @@ private:
// In the single file case, length maps to the length of the file in bytes.
if (tm_.file_count() == 0 && length_ != 0 && !std::empty(tm_.name_))
{
tm_.files_.add(tm_.name_, length_);
tm_.files_.add(tr_torrent_files::makeSubpathPortable(tm_.name_), length_);
}
if (auto const has_metainfo = tm_.info_dict_size() != 0U; has_metainfo)