From a7d45682e79427784f13ef1685fd2764c8e4c103 Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Tue, 29 Jan 2019 12:36:23 +0100 Subject: [PATCH] Filesystem storage: handle basepath with trailing slash --- src/Model/Storage/Filesystem.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/Storage/Filesystem.php b/src/Model/Storage/Filesystem.php index 0ea3dafab1..e21e13ccdd 100644 --- a/src/Model/Storage/Filesystem.php +++ b/src/Model/Storage/Filesystem.php @@ -28,7 +28,8 @@ class Filesystem implements IStorage private static function getBasePath() { - return Config::get('storage', 'filesystem_path', self::DEFAULT_BASE_FOLDER); + $path = Config::get('storage', 'filesystem_path', self::DEFAULT_BASE_FOLDER); + return rtrim($path, '/'); } /** -- 2.39.2