X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=img_auth.php;h=55f17ac7f474e11dc5d6727179af5eafebc964e7;hb=253dbff3224d38c7af0986f949f9b248a3d4e0dc;hp=6f449c687791bf73c97a46f86b7ea558be3249d5;hpb=19a38526f390cfdc6a6061cc055fc7f13167bf03;p=lhc%2Fweb%2Fwiklou.git diff --git a/img_auth.php b/img_auth.php index 6f449c6877..55f17ac7f4 100644 --- a/img_auth.php +++ b/img_auth.php @@ -114,7 +114,7 @@ function wfImageAuthMain() { // be under a folder that has the source file name. if ( $zone === 'thumb' || $zone === 'transcoded' ) { $name = wfBaseName( dirname( $path ) ); - $filename = $repo->getZonePath( $zone ) . substr( $path, strlen( "/".$zone ) ); + $filename = $repo->getZonePath( $zone ) . substr( $path, strlen( "/" . $zone ) ); // Check to see if the file exists if ( !$repo->fileExists( $filename ) ) { wfForbidden( 'img-auth-accessdenied', 'img-auth-nofile', $filename );