dont try to insert ".."
This commit is contained in:
parent
3152d4efd5
commit
680a4a5b03
1 changed files with 2 additions and 1 deletions
|
@ -875,7 +875,8 @@ bool FileBrowser::AddToCaddy(FileBrowser::BrowsableList::Entry* current)
|
|||
{
|
||||
return AddImageToCaddy(current);
|
||||
}
|
||||
else if (current->filImage.fattrib & AM_DIR)
|
||||
|
||||
else if ( (current->filImage.fattrib & AM_DIR) && ( strcmp(current->filImage.fname, "..") != 0) )
|
||||
{
|
||||
bool ret = false;
|
||||
f_chdir(current->filImage.fname);
|
||||
|
|
Loading…
Reference in a new issue