]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/BasePath.php
Changes:
[friendica.git] / src / Util / BasePath.php
index a6f0cd51f3d55ddb25c322902e3d2e8d7920864c..90a4cfe6be71738ebac86d31ae8cc1a567f4107b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -43,7 +43,7 @@ class BasePath
        }
 
        /**
-        * Returns the base filesystem path of the App
+        * Returns the base Friendica filesystem path without trailing slash
         *
         * It first checks for the internal variable, then for DOCUMENT_ROOT and
         * finally for PWD
@@ -71,7 +71,7 @@ class BasePath
                        throw new \Exception(sprintf('\'%s\' is not a valid basepath', $baseDir));
                }
 
-               return $baseDir;
+               return rtrim($baseDir, '/');
        }
 
        /**