Filesystem storage: handle basepath with trailing slash

This commit is contained in:
fabrixxm 2019-01-29 12:36:23 +01:00
parent ec94318a35
commit a7d45682e7

View file

@ -28,7 +28,8 @@ class Filesystem implements IStorage
private static function getBasePath() 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, '/');
} }
/** /**