X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialListfiles.php;h=dbfdbd5caa7ef5383130a2e6b1e6e3dc22863347;hb=35049ad88b74d322fd7c910231292d5fb4f8b406;hp=e15b6959aca6903cf43acc229b9da4b0c5e6e6fe;hpb=30b264b832853501f0bec7855a70b9f858aa19e9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialListfiles.php b/includes/specials/SpecialListfiles.php index e15b6959ac..dbfdbd5caa 100644 --- a/includes/specials/SpecialListfiles.php +++ b/includes/specials/SpecialListfiles.php @@ -127,21 +127,23 @@ class ImageListPager extends TablePager { global $wgLang; switch ( $field ) { case 'img_timestamp': - return $wgLang->timeanddate( $value, true ); + return htmlspecialchars( $wgLang->timeanddate( $value, true ) ); case 'img_name': static $imgfile = null; if ( $imgfile === null ) $imgfile = wfMsg( 'imgfile' ); $name = $this->mCurrentRow->img_name; - $link = $this->getSkin()->makeKnownLinkObj( Title::makeTitle( NS_FILE, $name ), $value ); + $link = $this->getSkin()->linkKnown( Title::makeTitle( NS_FILE, $name ), $value ); $image = wfLocalFile( $value ); $url = $image->getURL(); $download = Xml::element('a', array( 'href' => $url ), $imgfile ); return "$link ($download)"; case 'img_user_text': if ( $this->mCurrentRow->img_user ) { - $link = $this->getSkin()->makeLinkObj( Title::makeTitle( NS_USER, $value ), - htmlspecialchars( $value ) ); + $link = $this->getSkin()->link( + Title::makeTitle( NS_USER, $value ), + htmlspecialchars( $value ) + ); } else { $link = htmlspecialchars( $value ); }