* @file
*/
+use MediaWiki\Shell\Shell;
+
/**
* @ingroup Dump
*/
*/
function setup7zCommand( $file ) {
$command = "7za a -bd -si -mx=";
- $command .= wfEscapeShellArg( $this->compressionLevel ) . ' ';
- $command .= wfEscapeShellArg( $file );
+ $command .= Shell::escape( $this->compressionLevel ) . ' ';
+ $command .= Shell::escape( $file );
// Suppress annoying useless crap from p7zip
// Unfortunately this could suppress real error messages too
$command .= ' >' . wfGetNull() . ' 2>&1';