Fix: Limit sessions file scan to session files

This commit is contained in:
Laurent Destailleur 2009-09-04 23:39:16 +00:00
parent b29efb0e96
commit 94be4c87c0

View File

@ -462,7 +462,7 @@ function listOfSessions()
$dh = @opendir($sessPath);
while(($file = @readdir($dh)) !== false)
{
if ($file != "." && $file != "..")
if (eregi('^sess_',$file) && $file != "." && $file != "..")
{
$fullpath = $sessPath.$file;
if(! @is_dir($fullpath))