From 42f49f275ed4d582b585ce2d95abbc9451647522 Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Tue, 3 Feb 2026 01:15:59 +0100 Subject: [PATCH] log irgendwas --- config/current.ver | 2 +- public/index.php | 19 +++++++++++++++++++ src/ApiKernel.php | 6 ++++-- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/config/current.ver b/config/current.ver index 5ab1538..f37ae4a 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.2.18 \ No newline at end of file +1.2.19 \ No newline at end of file diff --git a/public/index.php b/public/index.php index e9f68ba..59e058e 100644 --- a/public/index.php +++ b/public/index.php @@ -1,6 +1,25 @@ debugDir(); if (!is_dir($dir)) { - @mkdir($dir, 0775, true); + @mkdir($dir, 0777, true); } + @chmod($dir, 0777); $safeName = preg_replace('/[^a-zA-Z0-9_\.\-]/', '_', $name) ?: 'debug'; $file = rtrim($dir, '/') . '/' . $safeName . '.log'; $data = json_encode($payload, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT); @file_put_contents($file, $data ?: ''); + @chmod($file, 0666); $fallback = sys_get_temp_dir() . '/emailtemplate_debug.log'; $line = json_encode([