Add a bit more sanity checking on destination directory.
This commit is contained in:
parent
7d6d574a50
commit
2402516dfa
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ void FGAdminUI::update_remove_box() {
|
|||
|
||||
remove_box->clear();
|
||||
|
||||
if ( dest.length() ) {
|
||||
if ( dest.length() && fl_filename_isdir(dest.c_str()) ) {
|
||||
ulDir *dir = ulOpenDir( dest.c_str() ) ;
|
||||
ulDirEnt *ent;
|
||||
while ( ent = ulReadDir( dir ) ) {
|
||||
|
|
Loading…
Add table
Reference in a new issue