From 7068560715f943c95138ce9856e13647f025633f Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Wed, 30 Mar 2022 13:34:59 +0200 Subject: [PATCH] Adding `logOutputFile: '/dev/null'` (#1371) * Adding `logOutputFile: '/dev/null'` See https://github.com/dompdf/dompdf/issues/2810#issuecomment-1070927239 for the reason and https://github.com/dompdf/dompdf/issues/1709#issuecomment-466717959 for the solution * Change `logOutputFile` to `''` --- nucleos/dompdf-bundle/3.1/config/packages/nucleos_dompdf.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/nucleos/dompdf-bundle/3.1/config/packages/nucleos_dompdf.yaml b/nucleos/dompdf-bundle/3.1/config/packages/nucleos_dompdf.yaml index 0e4b025f..48bce8c2 100644 --- a/nucleos/dompdf-bundle/3.1/config/packages/nucleos_dompdf.yaml +++ b/nucleos/dompdf-bundle/3.1/config/packages/nucleos_dompdf.yaml @@ -1,3 +1,4 @@ nucleos_dompdf: defaults: chroot: '%kernel.project_dir%/public/assets' # See https://github.com/dompdf/dompdf/wiki/Usage#security-restrictions-for-local-files + logOutputFile: '' # Prevent creating `/tmp/log.htm` which causes problems in some server configurations