mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +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
|
||||
$bits = explode('/', $path);
|
||||
|
||||
// Remove any . in the path
|
||||
$bits = array_diff($bits, array('.'));
|
||||
// Remove any . in the path, renumber array for the loop below
|
||||
$bits = array_keys(array_diff($bits, array('.')));
|
||||
|
||||
// Lets get looping, run over and resolve any .. (up directory)
|
||||
for ($i = 0, $max = sizeof($bits); $i < $max; $i++)
|
||||
|
|
Loading…
Add table
Reference in a new issue