- $cmd = wfEscapeShellArg( $wgImageMagickConvertCommand ) . " " .
- wfEscapeShellArg( $this->escapeMagickInput( $params['srcPath'], $scene ) ) .
- " -rotate " . wfEscapeShellArg( "-$rotation" ) . " " .
- wfEscapeShellArg( $this->escapeMagickOutput( $params['dstPath'] ) );
+ $cmd = Shell::escape( $wgImageMagickConvertCommand ) . " " .
+ Shell::escape( $this->escapeMagickInput( $params['srcPath'], $scene ) ) .
+ " -rotate " . Shell::escape( "-$rotation" ) . " " .
+ Shell::escape( $this->escapeMagickOutput( $params['dstPath'] ) );