Merge "importImages.php: Run input file names through UTF8 normalization"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 9 Jan 2016 10:36:18 +0000 (10:36 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 9 Jan 2016 10:36:18 +0000 (10:36 +0000)
maintenance/importImages.php

index a040248..701af62 100644 (file)
@@ -136,7 +136,7 @@ $count = count( $files );
 if ( $count > 0 ) {
 
        foreach ( $files as $file ) {
-               $base = wfBaseName( $file );
+               $base = UtfNormal\Validator::cleanUp( wfBaseName( $file ) );
 
                # Validate a title
                $title = Title::makeTitleSafe( NS_FILE, $base );