X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=img_auth.php;h=55f17ac7f474e11dc5d6727179af5eafebc964e7;hb=f11e6a344c12bdf7e788da98902e1855f7e5694c;hp=6f449c687791bf73c97a46f86b7ea558be3249d5;hpb=2e040b99eda6c99cf472b3896f62d2f21315e808;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 );