Fix: Limit sessions file scan to session files
This commit is contained in:
parent
b29efb0e96
commit
94be4c87c0
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user