1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 19:54:12 +02:00

[ticket/15671] Add test

PHPBB3-15671
This commit is contained in:
Rubén Calvo
2018-06-08 20:18:50 +02:00
parent a641ea9291
commit 26680763c2
2 changed files with 59 additions and 48 deletions

View File

@@ -255,11 +255,11 @@ class local implements adapter_interface, stream_interface
do
{
$parts = explode(DIRECTORY_SEPARATOR, $path);
$parts = explode('/', $path);
$parts = array_slice($parts, 0, -1);
$path = implode(DIRECTORY_SEPARATOR, $parts);
$path = implode('/', $parts);
}
while ($path && @rmdir($dirpath . $path));
while ($path && @rmdir($dirpath . '/' . $path));
}
/**