Followup r87347, bug 22227, use makeTitleSafe.
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 7 Jun 2011 18:50:21 +0000 (18:50 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 7 Jun 2011 18:50:21 +0000 (18:50 +0000)
includes/specials/SpecialListfiles.php

index dacce78..a9c694a 100644 (file)
@@ -196,7 +196,8 @@ class ImageListPager extends TablePager {
                                static $imgfile = null;
                                if ( $imgfile === null ) $imgfile = wfMsg( 'imgfile' );
 
-                               $filePage = Title::makeTitle( NS_FILE, $value );
+                               // Weird files can maybe exist? Bug 
+                               $filePage = Title::makeTitleSafe( NS_FILE, $value );
                                if( $filePage ) {
                                        $link = $this->getSkin()->linkKnown( $filePage, htmlspecialchars( $filePage->getText() ) );
                                        $download = Xml::element( 'a',