From 63601400e476c6cf43d985f3e7b9864681695ed4 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 18 Jan 2013 16:46:04 +0100 Subject: Update to MediaWiki 1.20.2 this update includes: * adjusted Arch Linux skin * updated FluxBBAuthPlugin * patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024 --- img_auth.php | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) (limited to 'img_auth.php') diff --git a/img_auth.php b/img_auth.php index 7b09eb64..b3a34955 100644 --- a/img_auth.php +++ b/img_auth.php @@ -1,5 +1,4 @@ fileExists( $filename, FileRepo::FILES_ONLY ) ) { + if ( !$repo->fileExists( $filename ) ) { wfForbidden( 'img-auth-accessdenied','img-auth-nofile', $filename ); return; } @@ -135,13 +148,13 @@ function wfForbidden( $msg1, $msg2 ) { array_shift( $args ); array_shift( $args ); - $msgHdr = htmlspecialchars( wfMsg( $msg1 ) ); + $msgHdr = wfMessage( $msg1 )->escaped(); $detailMsgKey = $wgImgAuthDetails ? $msg2 : 'badaccess-group0'; - $detailMsg = htmlspecialchars( wfMsg( $detailMsgKey, $args ) ); + $detailMsg = wfMessage( $detailMsgKey, $args )->escaped(); wfDebugLog( 'img_auth', - "wfForbidden Hdr:" . wfMsgExt( $msg1, array( 'language' => 'en' ) ). " Msg: ". - wfMsgExt( $msg2, array( 'language' => 'en' ), $args ) + "wfForbidden Hdr:" . wfMessage( $msg1 )->inLanguage( 'en' )->text() . " Msg: ". + wfMessage( $msg2, $args )->inLanguage( 'en' )->text() ); header( 'HTTP/1.0 403 Forbidden' ); -- cgit v1.2.2