From: Chad Horohoe Date: Tue, 7 Jun 2011 18:50:21 +0000 (+0000) Subject: Followup r87347, bug 22227, use makeTitleSafe. X-Git-Tag: 1.31.0-rc.0~29632 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=80e2b09a9fb4509bfaca372e6f5a842f5c86d0de;p=lhc%2Fweb%2Fwiklou.git Followup r87347, bug 22227, use makeTitleSafe. --- diff --git a/includes/specials/SpecialListfiles.php b/includes/specials/SpecialListfiles.php index dacce789ed..a9c694abdb 100644 --- a/includes/specials/SpecialListfiles.php +++ b/includes/specials/SpecialListfiles.php @@ -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',