X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/d9e9c1735aa53fd4af42c421923bc269d31d3900..refs/pull/3918/head:/app/Config/dompdf.php diff --git a/app/Config/dompdf.php b/app/Config/dompdf.php index ac206a0ce..09dd91bcc 100644 --- a/app/Config/dompdf.php +++ b/app/Config/dompdf.php @@ -7,6 +7,7 @@ * Configuration should be altered via the `.env` file or environment variables. * Do not edit this file unless you're happy to maintain any changes yourself. */ + $dompdfPaperSizeMap = [ 'a4' => 'a4', 'letter' => 'letter', @@ -77,7 +78,7 @@ return [ 'chroot' => realpath(public_path()), /** - * Protocol whitelist + * Protocol whitelist. * * Protocols and PHP wrappers allowed in URIs, and the validation rules * that determine if a resouce may be loaded. Full support is not guaranteed @@ -87,9 +88,9 @@ return [ * @var array */ 'allowed_protocols' => [ - "file://" => ["rules" => []], - "https://" => ["rules" => []], - "https://" => ["rules" => []] + 'file://' => ['rules' => []], + 'http://' => ['rules' => []], + 'https://' => ['rules' => []], ], /** @@ -173,7 +174,7 @@ return [ * * @var string */ - 'default_paper_orientation' => "portrait", + 'default_paper_orientation' => 'portrait', /** * The default font family. @@ -277,12 +278,13 @@ return [ 'enable_css_float' => true, /** - * Use the HTML5 Lib parser + * Use the HTML5 Lib parser. * * @deprecated This feature is now always on in dompdf 2.x + * * @var bool */ - "enable_html5_parser" => true, + 'enable_html5_parser' => true, ], ];