Page MenuHomePhabricator

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

Description

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

@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. :-)