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:
Arvid Norberg
2005-05-11 23:03:12 +00:00
parent d38e66a223
commit 7814b03370
9 changed files with 119 additions and 95 deletions

View File

@@ -655,6 +655,9 @@ in the torrent, you can use ``begin_files()``, ``end_files()``,
``rbegin_files()`` and ``rend_files()``. These will give you standard vector
iterators with the type ``file_entry``.
The ``path`` is the full (relative) path of each file. i.e. if it is a multi-file
torrent, all the files starts with a directory with the same name as ``torrent_info::name()``.
::
struct file_entry