require_once __DIR__ . '/../includes/export/WikiExporter.php';
use MediaWiki\MediaWikiServices;
+use MediaWiki\Shell\Shell;
use MediaWiki\Storage\BlobAccessException;
use MediaWiki\Storage\SqlBlobStore;
use Wikimedia\Rdbms\IMaintainableDatabase;
if ( file_exists( "$IP/../multiversion/MWScript.php" ) ) {
$cmd = implode( " ",
- array_map( 'wfEscapeShellArg',
+ array_map( [ Shell::class, 'escape' ],
[
$this->php,
"$IP/../multiversion/MWScript.php",
'--wiki', wfWikiID() ] ) );
} else {
$cmd = implode( " ",
- array_map( 'wfEscapeShellArg',
+ array_map( [ Shell::class, 'escape' ],
[
$this->php,
"$IP/maintenance/fetchText.php",
if ( $newAddress === false ) {
return false;
}
+ $newAddress = trim( $newAddress );
if ( strpos( $newAddress, ':' ) === false ) {
$newAddress = SqlBlobStore::makeAddressFromTextId( intval( $newAddress ) );
}