diff options
| author | David M <davidmj@users.sourceforge.net> | 2006-12-19 23:48:32 +0000 |
|---|---|---|
| committer | David M <davidmj@users.sourceforge.net> | 2006-12-19 23:48:32 +0000 |
| commit | 3503830c47600fdb7ce5df806030cdc7d1dd3f53 (patch) | |
| tree | 785e5c5f67db49ac3505213e9f65313878cbf1ec /phpBB/includes | |
| parent | c32156a616b46ef3478c4cb2d37f5721fdbedcd6 (diff) | |
| download | forums-3503830c47600fdb7ce5df806030cdc7d1dd3f53.tar forums-3503830c47600fdb7ce5df806030cdc7d1dd3f53.tar.gz forums-3503830c47600fdb7ce5df806030cdc7d1dd3f53.tar.bz2 forums-3503830c47600fdb7ce5df806030cdc7d1dd3f53.tar.xz forums-3503830c47600fdb7ce5df806030cdc7d1dd3f53.zip | |
#6436, thanks ToonArmy for the patch :D
git-svn-id: file:///svn/phpbb/trunk@6783 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 4511c57408..04113fae06 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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++) |
