Index: branches/REL1_17/phase3/includes/specials/SpecialFileDuplicateSearch.php |
— | — | @@ -85,7 +85,7 @@ |
86 | 86 | $hash = ''; |
87 | 87 | $filename = isset( $par ) ? $par : $wgRequest->getText( 'filename' ); |
88 | 88 | |
89 | | - $title = Title::newFromText( $filename ); |
| 89 | + $title = Title::makeTitleSafe( NS_FILE, $filename ); |
90 | 90 | if( $title && $title->getText() != '' ) { |
91 | 91 | $dbr = wfGetDB( DB_SLAVE ); |
92 | 92 | $image = $dbr->tableName( 'image' ); |