X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FBasePath.php;h=4811239295a36e421e1c4c9f209f545e5ed36449;hb=e1863951986ba5be173758324a00652bc5af870c;hp=39931a84e4042d50c31ebdb4eec702d807d7b55a;hpb=0a4119adaf6294bf43d135a0f435c1dd677c50e0;p=friendica.git diff --git a/src/Util/BasePath.php b/src/Util/BasePath.php index 39931a84e4..4811239295 100644 --- a/src/Util/BasePath.php +++ b/src/Util/BasePath.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Util; @@ -24,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 @@ -52,7 +71,7 @@ class BasePath throw new \Exception(sprintf('\'%s\' is not a valid basepath', $baseDir)); } - return $baseDir; + return rtrim($baseDir, '/'); } /**