X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FUtil%2FBasePath.php;h=4811239295a36e421e1c4c9f209f545e5ed36449;hb=8ebee968a691c13942060346ae2938ef0f481d38;hp=06fa5246797028fb1bbee1dc75a5b7184db7726c;hpb=92c1cbeeeccf31ae311b532866610b48c97dccfe;p=friendica.git diff --git a/src/Util/BasePath.php b/src/Util/BasePath.php index 06fa524679..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 } /** - * @brief 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,11 +71,11 @@ class BasePath throw new \Exception(sprintf('\'%s\' is not a valid basepath', $baseDir)); } - return $baseDir; + return rtrim($baseDir, '/'); } /** - * @brief Returns a normalized file path + * Returns a normalized file path * * This is a wrapper for the "realpath" function. * That function cannot detect the real path when some folders aren't readable.