importImages.php: Run input file names through UTF8 normalization
authorananay <i@ananayarora.com>
Fri, 8 Jan 2016 23:07:57 +0000 (04:37 +0530)
committerTTO <at.light@live.com.au>
Sat, 9 Jan 2016 04:15:53 +0000 (04:15 +0000)
Bug: T78060
Change-Id: I545ea8f28ff3a1aac03c29d27355c0371632ef4d

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 );