mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
missing closedir, can lead to Too many open files bugs
This commit is contained in:
parent
4bca7982d6
commit
b68e7f0041
@ -567,6 +567,7 @@
|
||||
$list[] = substr($file,0,strpos($file,'.'));
|
||||
}
|
||||
}
|
||||
closedir($dh);
|
||||
}
|
||||
if(!is_array($list))
|
||||
{
|
||||
@ -578,8 +579,8 @@
|
||||
$list[] = substr($file,0,strpos($file,'.'));
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir($dh);
|
||||
}
|
||||
reset ($list);
|
||||
return $list;
|
||||
}
|
||||
@ -691,9 +692,11 @@
|
||||
$ext = strtolower(strrchr($f,'.'));
|
||||
if (($ext == '.gif' || $ext == '.png') && strpos($f,'navbar') === False)
|
||||
{
|
||||
closedir($d);
|
||||
return True;
|
||||
}
|
||||
}
|
||||
closedir($d);
|
||||
}
|
||||
return False;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user