diff --git a/index.php b/index.php index 277bfa7e..c2ee77c9 100644 --- a/index.php +++ b/index.php @@ -64,6 +64,10 @@ public function __construct( throw new \Exception('Invalid baseDir provided'); } + if (!str_ends_with($nextcloudDir, '/')) { + $nextcloudDir .= '/'; + } + $this->nextcloudDir = $nextcloudDir; [$this->configValues] = $this->readConfigFile();