Index: trunk/phase3/includes/specials/SpecialListfiles.php |
— | — | @@ -196,7 +196,8 @@ |
197 | 197 | static $imgfile = null; |
198 | 198 | if ( $imgfile === null ) $imgfile = wfMsg( 'imgfile' ); |
199 | 199 | |
200 | | - $filePage = Title::makeTitle( NS_FILE, $value ); |
| 200 | + // Weird files can maybe exist? Bug |
| 201 | + $filePage = Title::makeTitleSafe( NS_FILE, $value ); |
201 | 202 | if( $filePage ) { |
202 | 203 | $link = $this->getSkin()->linkKnown( $filePage, htmlspecialchars( $filePage->getText() ) ); |
203 | 204 | $download = Xml::element( 'a', |