We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98cfa18 commit 51c0882Copy full SHA for 51c0882
1 file changed
src/PDF.php
@@ -47,6 +47,7 @@ class PDF
47
'margin',
48
'preferCSSPageSize',
49
'file',
50
+ 'sandbox',
51
);
52
53
/**
@@ -332,6 +333,16 @@ private function make(array $options) : string
332
333
}
334
335
foreach ($options as $option => $value) {
336
+ if ($option == 'sandbox') {
337
+ // only mess with sandbox if it is explicitly disabled
338
+ if ($value === false) {
339
+ $command[] = '--no-sandbox';
340
+ }
341
+
342
+ // don't need the below lines
343
+ continue;
344
345
346
$command[] = '--' . $option;
347
$command[] = (is_array($value)) ? implode(',', $value) : $value;
348
0 commit comments