This commit is contained in:
2026-02-03 02:01:45 +01:00
parent d3a8e95372
commit ea5e25e6a8
2 changed files with 11 additions and 2 deletions

View File

@@ -1 +1 @@
1.2.21
1.2.23

View File

@@ -2206,9 +2206,18 @@ class ApiKernel
private function handleTemplateReferences(): void
{
@file_put_contents(sys_get_temp_dir() . '/emailtemplate_debug.log', json_encode([
$traceDir = dirname(__DIR__) . '/debug';
if (!is_dir($traceDir)) {
@mkdir($traceDir, 0777, true);
}
@file_put_contents($traceDir . '/templates_references_trace.log', json_encode([
'time' => date(DATE_ATOM),
'tag' => 'handleTemplateReferences',
'host' => $_SERVER['HTTP_HOST'] ?? '',
'xfh' => $_SERVER['HTTP_X_FORWARDED_HOST'] ?? '',
'env' => $this->conf['env'] ?? null,
'app_env' => defined('APP_ENV') ? APP_ENV : null,
'user' => ($this->in['user'] ?? null),
'input' => $this->in ?? null,
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . "\n", FILE_APPEND);