mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
fixes for str_replace
This commit is contained in:
parent
ec50e6f64b
commit
d55c77c59d
@ -39,7 +39,7 @@ trait PdfMaker
|
||||
$pdf->addChromiumArguments(config('ninja.snappdf_chromium_arguments'));
|
||||
}
|
||||
|
||||
$html = str_replace(['file:/', 'iframe', '<object', '<object', '127.0.0.1', 'localhost'], ['','','','','',''], $html);
|
||||
$html = str_ireplace(['file:/', 'iframe', '<embed', '<embed', '<object', '<object', '127.0.0.1', 'localhost'], '', $html);
|
||||
|
||||
$generated = $pdf
|
||||
->setHtml($html)
|
||||
|
Loading…
x
Reference in New Issue
Block a user