From a195421fed3fcd471452de4db179fde96fa5ff21 Mon Sep 17 00:00:00 2001 From: Terranom674 Date: Thu, 20 Aug 2026 16:40:47 +0200 Subject: [PATCH] Allow empty WebDAV root path in reconcile --- runtime/reconcile-webdav.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/reconcile-webdav.php b/runtime/reconcile-webdav.php index 2ebfd7f..a019c85 100644 --- a/runtime/reconcile-webdav.php +++ b/runtime/reconcile-webdav.php @@ -180,7 +180,7 @@ try { $path = trim((string)($root['webdav_path'] ?? ''), '/'); $display = trim((string)($root['display_name'] ?? '')); - if ($path === '' || $display === '' || preg_match('/[\t\r\n]/', $path.$display)) fail_webdav_reconcile('Eine gespeicherte WebDAV-Wurzel ist ungueltig.'); + if ($display === '' || preg_match('/[\t\r\n]/', $path.$display)) fail_webdav_reconcile('Eine gespeicherte WebDAV-Wurzel ist ungueltig.'); $rootLines[] = $path."\t".$display; } file_put_contents($rootsPath, implode("\n", $rootLines)."\n", LOCK_EX);