r52751 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52750‎ | r52751 | r52752 >
Date:20:06, 3 July 2009
Author:demon
Status:ok
Tags:
Comment:
(bug 18394) img_auth.php now respects userCan
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/img_auth.php (modified) (history)

Diff [purge]

Index: trunk/phase3/img_auth.php
@@ -55,6 +55,10 @@
5656 wfDebugLog( 'img_auth', "Unable to construct a valid Title from `{$name}`" );
5757 wfForbidden();
5858 }
 59+if( !$title->userCanRead() ) {
 60+ wfDebugLog( 'img_auth', "User does not have access to read `{$name}`" );
 61+ wfForbidden();
 62+}
5963 $title = $title->getPrefixedText();
6064
6165 // Check the whitelist if needed
Index: trunk/phase3/RELEASE-NOTES
@@ -223,6 +223,7 @@
224224 * (bug 11242) Check for MySQL storage engines during installation now checks
225225 whether the engines are actually available
226226 * (bug 19390) Omit the "printable version" link on the printable version
 227+* (bug 18394) img_auth.php now respects userCan
227228
228229 == API changes in 1.16 ==
229230

Status & tagging log