diff --git a/common/framework/storage.php b/common/framework/storage.php index 9383917e4..78882bb3b 100644 --- a/common/framework/storage.php +++ b/common/framework/storage.php @@ -723,6 +723,7 @@ class Storage */ public static function deleteEmptyDirectory($dirname, $delete_empty_parents = false) { + $dirname = rtrim($dirname, '/\\'); if (!self::isDirectory($dirname) || !self::isEmptyDirectory($dirname)) { return false;