fixed issue with creating torrents with a single file in a directory and some security issues with paths in torrents
This commit is contained in:
@@ -62,6 +62,7 @@ void add_files(
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cerr << "adding \"" << l.string() << "\"\n";
|
||||
file fi(f, file::in);
|
||||
fi.seek(0, file::end);
|
||||
libtorrent::size_type size = fi.tell();
|
||||
|
Reference in New Issue
Block a user