#6436, thanks ToonArmy for the patch :D

git-svn-id: file:///svn/phpbb/trunk@6783 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-12-19 23:48:32 +00:00
parent c32156a616
commit 3503830c47

View file

@ -524,8 +524,8 @@ if (!function_exists('realpath'))
// Break the string into little bits for us to nibble on // Break the string into little bits for us to nibble on
$bits = explode('/', $path); $bits = explode('/', $path);
// Remove any . in the path // Remove any . in the path, renumber array for the loop below
$bits = array_diff($bits, array('.')); $bits = array_keys(array_diff($bits, array('.')));
// Lets get looping, run over and resolve any .. (up directory) // Lets get looping, run over and resolve any .. (up directory)
for ($i = 0, $max = sizeof($bits); $i < $max; $i++) for ($i = 0, $max = sizeof($bits); $i < $max; $i++)