KartikMistry has uploaded a new change for review.
https://gerrit.wikimedia.org/r/118799
Change subject: Use Tab instead of Space as per PHP codesniffer
......................................................................
Use Tab instead of Space as per PHP codesniffer
Change-Id: Iea84018c3dee45d5f062b41b1337af40e3de2fcf
---
M img_auth.php
1 file changed, 5 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/99/118799/1
diff --git a/img_auth.php b/img_auth.php
index 7765dd3..391fb29 100644
--- a/img_auth.php
+++ b/img_auth.php
@@ -92,11 +92,11 @@
if ( strpos( $path, $prefix ) === 0 ) {
$be = FileBackendGroup::singleton()->backendFromPath(
$storageDir );
$filename = $storageDir . substr( $path, strlen(
$prefix ) ); // strip prefix
- // Check basic user authorization
- if ( !RequestContext::getMain()->getUser()->isAllowed(
'read' ) ) {
- wfForbidden( 'img-auth-accessdenied',
'img-auth-noread', $path );
- return;
- }
+ // Check basic user authorization
+ if ( !RequestContext::getMain()->getUser()->isAllowed(
'read' ) ) {
+ wfForbidden( 'img-auth-accessdenied',
'img-auth-noread', $path );
+ return;
+ }
if ( $be->fileExists( array( 'src' => $filename ) ) ) {
wfDebugLog( 'img_auth', "Streaming `" .
$filename . "`." );
$be->streamFile( array( 'src' => $filename ),
--
To view, visit https://gerrit.wikimedia.org/r/118799
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iea84018c3dee45d5f062b41b1337af40e3de2fcf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: KartikMistry <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits