<?php
/**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
}
/**
- * 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
throw new \Exception(sprintf('\'%s\' is not a valid basepath', $baseDir));
}
- return $baseDir;
+ return rtrim($baseDir, '/');
}
/**