diff --git a/composer.json b/composer.json index 6db08e2..797e657 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ ], "require": { "php": "^7.2 || ^8.0", - "dompdf/dompdf": "^2.0.7", + "dompdf/dompdf": "^2.0.7 || ^3.0", "illuminate/support": "^6|^7|^8|^9|^10|^11" }, "require-dev": { diff --git a/config/dompdf.php b/config/dompdf.php index c9a928f..5278b7d 100644 --- a/config/dompdf.php +++ b/config/dompdf.php @@ -96,6 +96,11 @@ "https://" => ["rules" => []] ], + /** + * Operational artifact (log files, temporary files) path validation + */ + 'artifactPathValidation' => null, + /** * @var string */ @@ -266,6 +271,20 @@ */ "enable_remote" => true, + /** + * List of allowed remote hosts + * + * Each value of the array must be a valid hostname. + * + * This will be used to filter which resources can be loaded in combination with + * isRemoteEnabled. If enable_remote is FALSE, then this will have no effect. + * + * Leave to NULL to allow any remote host. + * + * @var array|null + */ + 'allowed_remote_hosts' => null, + /** * A ratio applied to the fonts height to be more like browsers' line height */