Filesystem storage: handle basepath with trailing slash

2022.09-rc
fabrixxm 2019-01-29 12:36:23 +01:00
rodzic ec94318a35
commit a7d45682e7
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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, '/');
}
/**