]> git.mxchange.org Git - friendica.git/commitdiff
Filesystem storage: handle basepath with trailing slash
authorfabrixxm <fabrix.xm@gmail.com>
Tue, 29 Jan 2019 11:36:23 +0000 (12:36 +0100)
committerfabrixxm <fabrix.xm@gmail.com>
Tue, 29 Jan 2019 11:36:23 +0000 (12:36 +0100)
src/Model/Storage/Filesystem.php

index 0ea3dafab133587ad3c27226344ca8fc254b8d22..e21e13ccdd6905af34ce5ce3bbe66530d1d43216 100644 (file)
@@ -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, '/');
        }
 
        /**