From 2e9b3ee2c6d0e4c9c3041be6787e9eef28956bd8 Mon Sep 17 00:00:00 2001 From: Terranom674 Date: Thu, 20 Aug 2026 10:59:50 +0200 Subject: [PATCH] Remove obsolete database credential field from WebDAV secrets --- include/nc_connector_connection_scope.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/nc_connector_connection_scope.inc.php b/include/nc_connector_connection_scope.inc.php index c40a0cd..839628d 100644 --- a/include/nc_connector_connection_scope.inc.php +++ b/include/nc_connector_connection_scope.inc.php @@ -21,7 +21,6 @@ function bratonien_tools_nc_connector_scoped_secret(array $connection) return array( 'v'=>3, - 'db_password'=>'', 'piwigo_user'=>(string)($decoded['piwigo_user'] ?? ''), 'piwigo_password'=>(string)($decoded['piwigo_password'] ?? ''), 'api_key_id'=>(string)($decoded['api_key_id'] ?? ''), @@ -44,7 +43,7 @@ function bratonien_tools_nc_connector_store_scoped_secret($id, array $connection } $credentials['v'] = 3; - $credentials['db_password'] = ''; + unset($credentials['db_password']); $payload = json_encode($credentials, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); if (!is_string($payload)) throw new RuntimeException('Verbindungszugangsdaten konnten nicht serialisiert werden.'); $blob = bratonien_tools_nc_connector_encrypt_secret($payload);