X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=img_auth.php;h=e6b6e1b67e823dbaa5abcf2bac963e2894a3ded8;hb=14d9e80ba42c471f1c9e92c5cb6808b4723b5945;hp=fa1609f96398c83a68034e1e04d8fb21a238fde3;hpb=e758226c91935a1df2b6fd3ed1f18922d8bfb45b;p=lhc%2Fweb%2Fwiklou.git diff --git a/img_auth.php b/img_auth.php index fa1609f963..e6b6e1b67e 100644 --- a/img_auth.php +++ b/img_auth.php @@ -17,7 +17,8 @@ * just that it was. If you want to change this, you can set $wgImgAuthDetails to 'true' * in localsettings.php and it will give the user the reason why access was denied. * - * Your server needs to support PATH_INFO; CGI-based configurations usually don't. + * Your server needs to support REQUEST_URI or PATH_INFO; CGI-based + * configurations sometimes don't. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -68,7 +69,7 @@ function wfImageAuthMain() { $path = "/" . $path; } - // Check for bug 28235: QUERY_STRING overriding the correct extension + // Check for T30235: QUERY_STRING overriding the correct extension $whitelist = []; $extension = FileBackend::extensionFromPath( $path, 'rawcase' ); if ( $extension != '' ) { @@ -147,7 +148,7 @@ function wfImageAuthMain() { } // Run hook for extension authorization plugins - /** @var $result array */ + /** @var array $result */ $result = null; if ( !Hooks::run( 'ImgAuthBeforeStream', [ &$title, &$path, &$name, &$result ] ) ) { wfForbidden( $result[0], $result[1], array_slice( $result, 2 ) );