From ee5e5a9d30f16ec8c637bb648af6a33c0ac82f85 Mon Sep 17 00:00:00 2001 From: rubencm Date: Wed, 24 Mar 2021 13:56:29 +0100 Subject: [PATCH] [ticket/16639] Fix for windows PHPBB3-16639 --- phpBB/phpbb/storage/adapter/local.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/phpbb/storage/adapter/local.php b/phpBB/phpbb/storage/adapter/local.php index 9a36c22a76..1516794276 100644 --- a/phpBB/phpbb/storage/adapter/local.php +++ b/phpBB/phpbb/storage/adapter/local.php @@ -260,11 +260,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 . DIRECTORY_SEPARATOR . $path)); + while ($path && @rmdir($dirpath . '/' . $path)); } }