692ab6835f
- only accept ASCII-encoded .dirindex files (this is guaranteed to work fine "everywhere"); - reject .dirindex files with a 'path' entry that contains a backslash or starts with a slash; - reject .dirindex files with a 'path' entry that contains a '..' component; - reject .dirindex files with an 'f', 'd' or 't' entry whose name field contains a slash or a backslash; - reject .dirindex files with an 'f', 'd' or 't' entry whose name field is '..'; - add comment lines (starting with '#') in the sample good .dirindex file used by unit tests. |
||
---|---|---|
.. | ||
bad_dirindex_backslash_in_directory_name | ||
bad_dirindex_backslash_in_file_name | ||
bad_dirindex_backslash_in_tarball_name | ||
bad_dirindex_directory_name_is_double_colon | ||
bad_dirindex_dotdot_in_path | ||
bad_dirindex_encoding | ||
bad_dirindex_file_name_is_double_colon | ||
bad_dirindex_path_contains_a_backslash | ||
bad_dirindex_path_starts_with_slash | ||
bad_dirindex_slash_in_directory_name | ||
bad_dirindex_slash_in_file_name | ||
bad_dirindex_slash_in_tarball_name | ||
bad_dirindex_tarball_name_is_double_colon |