
reedy at svn
Feb 11, 2012, 7:14 AM
Post #1 of 1
(11 views)
Permalink
|
|
SVN: [111240] trunk/phase3/thumb.php
|
|
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111240 Revision: 111240 Author: reedy Date: 2012-02-11 15:14:15 +0000 (Sat, 11 Feb 2012) Log Message: ----------- Drag in a change noticed in wmf branches Modified Paths: -------------- trunk/phase3/thumb.php Modified: trunk/phase3/thumb.php =================================================================== --- trunk/phase3/thumb.php 2012-02-11 15:13:01 UTC (rev 111239) +++ trunk/phase3/thumb.php 2012-02-11 15:14:15 UTC (rev 111240) @@ -124,7 +124,7 @@ // Check permissions if there are read restrictions if ( !in_array( 'read', User::getGroupPermissions( array( '*' ) ), true ) ) { - if ( !$img->getTitle()->userCan( 'read' ) ) { + if ( !$img->getTitle() || !$img->getTitle()->userCan( 'read' ) ) { wfThumbError( 403, 'Access denied. You do not have permission to access ' . 'the source file.' ); wfProfileOut( __METHOD__ ); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS [at] lists https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs
|