fixed access to parent dir off session.save_path, which gives errors under open_basedir

This commit is contained in:
Ralf Becker 2007-06-22 18:25:35 +00:00
parent 6a2718b2ba
commit af7edc4008

View File

@ -223,7 +223,7 @@
while (($file = readdir($dir)))
{
if (filesize($path.'/'.$file) >= $max_session_size) continue;
if ($file{0} == '.' || filesize($path.'/'.$file) >= $max_session_size) continue;
if (substr($file,0,5) != 'sess_' || $session_cache[$file] === false)
{