mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/12099] Fix clean_path() ".." stripping when previous directory was "."
PHPBB3-12099
This commit is contained in:
parent
41e52d9c9d
commit
638d43d6fe
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class filesystem
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($part === '..' && !empty($filtered) && $filtered[sizeof($filtered) - 1] !== '..')
|
if ($part === '..' && !empty($filtered) && $filtered[sizeof($filtered) - 1] !== '.' && $filtered[sizeof($filtered) - 1] !== '..')
|
||||||
{
|
{
|
||||||
array_pop($filtered);
|
array_pop($filtered);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue