From cfd9f3b4b050bb6108c3c55e79b117b6344a91f6 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Sat, 6 Dec 2025 00:52:41 +0100 Subject: [PATCH] sadsa --- src/ApiKernel.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ApiKernel.php b/src/ApiKernel.php index 37b38da..da3e01f 100644 --- a/src/ApiKernel.php +++ b/src/ApiKernel.php @@ -466,7 +466,7 @@ class ApiKernel // --- LOGIK mit ERWEITERTER PRÜFUNG ENDE --- $c = $this->firstExisting($allCols, ['settings_json', 'settings']); - if ($c && $settings !== null) $data[$c] = is_string($settings) ? $settings : json_encode($settings, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); + if ($c && $settings !== null) $data[$c] = is_string($settings) ? $settings : $this->encodeJson($settings); if ($templateId !== null && in_array('template_id', $allCols, true)) $data['template_id'] = $templateId; if ($sectionId !== null && in_array('section_id', $allCols, true)) $data['section_id'] = $sectionId; @@ -533,7 +533,7 @@ class ApiKernel $components = is_string($json) ? json_decode($json, true) : $json; if (is_array($components)) { $components = $this->cleanReferenceComponents($components); // BEREINIGUNG - $data[$jsonDbCol] = json_encode($components, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); + $data[$jsonDbCol] = $this->encodeJson($components); } else { $data[$jsonDbCol] = is_string($json) ? $json : ''; } @@ -557,7 +557,7 @@ class ApiKernel // --- LOGIK mit ERWEITERTER PRÜFUNG ENDE --- $c = $this->firstExisting($allCols, ['settings_json', 'settings']); - if ($settings !== null && $c) $data[$c] = is_string($settings) ? $settings : json_encode($settings, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); + if ($settings !== null && $c) $data[$c] = is_string($settings) ? $settings : $this->encodeJson($settings); $tpl = $this->val($this->in, ['template_id', 'tpl_id'], null); if ($tpl !== null && in_array('template_id', $allCols, true)) $data['template_id'] = $tpl;