Page MenuHomePhabricator

importImages.php ignores --dry-run
Open, Needs TriagePublic


In MediaWiki 1.31.1, the script maintenance/importImages.php ignores the option --dry-run and executes the import for real.

$ php importImages.php --dry-run --comment-ext txt ~/dir
Import Images
Importing myfile.jpg...done.

$ php importImages.php --dry-run --comment-ext txt ~/dir
Import Images
myfile.jpg exists, skipping

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 8 2019, 8:09 PM

@maiden_taiwan: Thanks. On an unrelated not, please upgrade to a supported version. You currently run an outdated and insecure version.

Thanks. I upgraded to 1.31.5 a few hours ago. :-)