mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
#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:
parent
c32156a616
commit
3503830c47
1 changed files with 2 additions and 2 deletions
|
@ -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++)
|
||||||
|
|
Loading…
Add table
Reference in a new issue