* Revert the change to the relevant message made in r102612: it is plain text, not wikitext, a format which does not support protocol-relative URLs.
// Get the requested file path (source file or thumbnail)
$matches = WebRequest::getPathInfo();
+ if ( !isset( $matches['title'] ) ) {
+ wfForbidden( 'img-auth-accessdenied', 'img-auth-nopathinfo' );
+ return;
+ }
$path = $matches['title'];
if ( $path && $path[0] !== '/' ) {
// Make sure $path has a leading /
'img-auth-nopathinfo' => 'Missing PATH_INFO.
Your server is not set up to pass this information.
It may be CGI-based and cannot support img_auth.
-[//www.mediawiki.org/wiki/Manual:Image_Authorization See image authorization.]',
+See http://www.mediawiki.org/wiki/Manual:Image_Authorization.',
'img-auth-notindir' => 'Requested path is not in the configured upload directory.',
'img-auth-badtitle' => 'Unable to construct a valid title from "$1".',
'img-auth-nologinnWL' => 'You are not logged in and "$1" is not in the whitelist.',