From d823bd886f2acfdae656cfa4511640c2d606905b Mon Sep 17 00:00:00 2001 From: "E.S. Rosenberg a.k.a. Keeper of the Keys" Date: Thu, 19 Mar 2026 23:48:22 +0200 Subject: [PATCH 1/2] fix: add trailing slash to nextcloudDir to fix #711 --- index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.php b/index.php index 277bfa7e..f8751b7e 100644 --- a/index.php +++ b/index.php @@ -64,6 +64,10 @@ public function __construct( throw new \Exception('Invalid baseDir provided'); } + if ($nextcloudDir !== '/') { + $nextcloudDir .= '/'; + } + $this->nextcloudDir = $nextcloudDir; [$this->configValues] = $this->readConfigFile(); From 70253f5cc9be8ed5e12f4bb9b6c36abe0e83ae3f Mon Sep 17 00:00:00 2001 From: "E.S. Rosenberg a.k.a. Keeper of the Keys" Date: Wed, 25 Mar 2026 00:40:09 +0200 Subject: [PATCH 2/2] fix: add trailing / only if needed should fix #711 Signed-off-by: E.S. Rosenberg a.k.a. Keeper of the Keys --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index f8751b7e..c2ee77c9 100644 --- a/index.php +++ b/index.php @@ -64,7 +64,7 @@ public function __construct( throw new \Exception('Invalid baseDir provided'); } - if ($nextcloudDir !== '/') { + if (!str_ends_with($nextcloudDir, '/')) { $nextcloudDir .= '/'; }