mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 17:04:45 -04:00
Adjustment for restricting html components when rendering PDF
This commit is contained in:
parent
65f70e8d79
commit
db37b50e21
@ -39,6 +39,8 @@ trait PdfMaker
|
||||
$pdf->addChromiumArguments(config('ninja.snappdf_chromium_arguments'));
|
||||
}
|
||||
|
||||
$html = str_replace(['file:/', 'iframe', '<object', '<object', '127.0.0.1', 'localhost'], ['','','','','',''], $html);
|
||||
|
||||
$generated = $pdf
|
||||
->setHtml($html)
|
||||
->generate();
|
||||
|
Loading…
x
Reference in New Issue
Block a user