Skip to content

A free open source IT asset/license management system

Fixed #12434: Include Docker Specific Paths for dompdf chroot

Lukas Jung9fca8c2438a4
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.