X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=img_auth.php;h=55f17ac7f474e11dc5d6727179af5eafebc964e7;hb=1c23e10d6e23b9c3380e93911b55062aa24897e3;hp=6f449c687791bf73c97a46f86b7ea558be3249d5;hpb=166191535f486569277e95b7e6a3850b5db6757d;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 );