fix: update URL format in docker-compose and enhance error handling in http2pic class
This commit is contained in:
@@ -178,11 +178,14 @@ class http2pic
|
||||
|
||||
$cmd.=' --wait-for-network-idle';
|
||||
|
||||
var_dump($cmd);
|
||||
|
||||
$cmd = escapeshellcmd($cmd);
|
||||
shell_exec($cmd);
|
||||
$output = [];
|
||||
$rc = 0;
|
||||
exec($cmd . ' 2>&1', $output, $rc);
|
||||
$this->params['cmd'] = $cmd;
|
||||
if ($rc !== 0) {
|
||||
$this->params['render_error'] = implode("\n", $output);
|
||||
}
|
||||
|
||||
$this->postRender();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user