warning fix: use correct type for std::string::find reply
This commit is contained in:
parent
32a8c712b0
commit
817297699f
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ static std::string fgNormalizePath (const std::string& path)
|
||||||
std::string fgValidatePath (const std::string& path, bool write)
|
std::string fgValidatePath (const std::string& path, bool write)
|
||||||
{
|
{
|
||||||
const string_list& allowed_paths(write ? write_allowed_paths : read_allowed_paths);
|
const string_list& allowed_paths(write ? write_allowed_paths : read_allowed_paths);
|
||||||
int star_pos;
|
size_t star_pos;
|
||||||
|
|
||||||
// Normalize the path (prevents ../../.. trickery)
|
// Normalize the path (prevents ../../.. trickery)
|
||||||
std::string normed_path = fgNormalizePath(path);
|
std::string normed_path = fgNormalizePath(path);
|
||||||
|
|
Loading…
Add table
Reference in a new issue