use tmpdir var instead of hardcoded /tmp
This commit is contained in:
parent
21cc4f6960
commit
f80aba4893
|
@ -29,7 +29,7 @@ if (extension_loaded('imagick')) {
|
|||
$tmpdir = get_temp_dir();
|
||||
|
||||
$exec = $this->cmd . ' --headless --nologo --nofirststartwizard --invisible --norestore -convert-to pdf -outdir ' . escapeshellarg($tmpdir) . ' ' . escapeshellarg($abspath);
|
||||
$export = 'export HOME=/tmp';
|
||||
$export = 'export HOME=/' . $tmpdir;
|
||||
|
||||
shell_exec($export . "\n" . $exec);
|
||||
|
||||
|
|
Loading…
Reference in New Issue