* @ingroup Maintenance
*/
+use MediaWiki\Shell\Shell;
+
/**
* Stream wrapper around 7za filter program.
* Required since we can't pass an open file resource to XMLReader->open()
} else {
return false;
}
- $arg = wfEscapeShellArg( $this->stripPath( $path ) );
+ $arg = Shell::escape( $this->stripPath( $path ) );
$command = "7za $options $arg";
if ( !wfIsWindows() ) {
// Suppress the stupid messages on stderr
}
}
-stream_wrapper_register( 'mediawiki.compress.7z', 'SevenZipStream' );
+stream_wrapper_register( 'mediawiki.compress.7z', SevenZipStream::class );