mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PdfHandler
synced 2024-11-27 09:42:16 +00:00
Merge "Change 2>&1 in doTransform to use wfShellExecWithStderr instead"
This commit is contained in:
commit
7eec21c89c
|
@ -173,12 +173,11 @@ class PdfHandler extends ImageHandler {
|
|||
$cmd .= " | " . wfEscapeShellArg( $wgPdfPostProcessor );
|
||||
$cmd .= " -depth 8 -resize {$width} - ";
|
||||
$cmd .= wfEscapeShellArg( $dstPath ) . ")";
|
||||
$cmd .= " 2>&1";
|
||||
|
||||
wfProfileIn( 'PdfHandler' );
|
||||
wfDebug( __METHOD__ . ": $cmd\n" );
|
||||
$retval = '';
|
||||
$err = wfShellExec( $cmd, $retval );
|
||||
$err = wfShellExecWithStderr( $cmd, $retval );
|
||||
wfProfileOut( 'PdfHandler' );
|
||||
|
||||
$removed = $this->removeBadFile( $dstPath, $retval );
|
||||
|
|
Loading…
Reference in a new issue