From 9fca8c2438a4d1f9a7e18184d4c44ded3a07704f Mon Sep 17 00:00:00 2001 From: Lukas Jung Date: Fri, 9 Jun 2023 11:00:46 +0200 Subject: [PATCH] Fixed #12434: Include Docker Specific Paths for dompdf chroot --- config/dompdf.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/dompdf.php b/config/dompdf.php index a2cdae8599..22f5f6c27e 100644 --- a/config/dompdf.php +++ b/config/dompdf.php @@ -74,8 +74,11 @@ return array( * This is only checked on command line call by dompdf.php, but not by * direct class use like: * $dompdf = new DOMPDF(); $dompdf->load_html($htmldata); $dompdf->render(); $pdfdata = $dompdf->output(); + * + * + * Hardcoding 2 Paths needed for Docker Containers */ - "chroot" => realpath(base_path()), + "chroot" => realpath(base_path()) . ",/var/lib/snipeit/data/uploads,/var/lib/snipeit/data/private_uploads", /** * Whether to enable font subsetting or not.