Fixed #12434: Include Docker Specific Paths for dompdf chroot

This commit is contained in:
Lukas Jung 2023-06-09 11:00:46 +02:00
parent c78c69700f
commit 9fca8c2438

View file

@ -74,8 +74,11 @@ return array(
* This is only checked on command line call by dompdf.php, but not by * This is only checked on command line call by dompdf.php, but not by
* direct class use like: * direct class use like:
* $dompdf = new DOMPDF(); $dompdf->load_html($htmldata); $dompdf->render(); $pdfdata = $dompdf->output(); * $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. * Whether to enable font subsetting or not.