Skip to content

Commit

Permalink
Docs: Re-enable file access to fix missing logo on visa letters (#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
timiwahalahti authored Oct 9, 2023
1 parent 0fae76f commit 08845e0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public function generate_pdf_from_file( $source_file, $filename, $args = array()
$file = $this->get_tmp_folder( $filename );

$command = sprintf(
'wkhtmltopdf -d %d -T %s -R %s -B %s -L %s %s %s',
// Allowing local file access is safe because the inputs to `$source_file` should have been escaped.
'wkhtmltopdf --enable-local-file-access -d %d -T %s -R %s -B %s -L %s %s %s',
$dpi,
escapeshellarg( $margins[0] ),
escapeshellarg( $margins[1] ),
Expand Down

0 comments on commit 08845e0

Please sign in to comment.