From: fabrixxm Date: Tue, 29 Jan 2019 11:36:23 +0000 (+0100) Subject: Filesystem storage: handle basepath with trailing slash X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a7d45682e79427784f13ef1685fd2764c8e4c103;p=friendica.git Filesystem storage: handle basepath with trailing slash --- 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, '/'); } /**