X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=img_auth.php;h=d7125897c5f9941e629bb361aa961067ec3888ac;hb=4b54f8416d75f6ff39087753a09d59af387558f8;hp=7f922c52239190a4591b64e9e7252a442774544f;hpb=5275f9b097cdae5dbab0845e3ea127086e3a6570;p=lhc%2Fweb%2Fwiklou.git diff --git a/img_auth.php b/img_auth.php index 7f922c5223..d7125897c5 100644 --- a/img_auth.php +++ b/img_auth.php @@ -1,5 +1,4 @@ fileExists( $filename, FileRepo::FILES_ONLY ) ) { + if ( !$repo->fileExists( $filename ) ) { wfForbidden( 'img-auth-accessdenied','img-auth-nofile', $filename ); return; } @@ -104,7 +121,7 @@ function wfImageAuthMain() { wfForbidden( $result[0], $result[1], array_slice( $result, 2 ) ); return; } - + // Check user authorization for this title // Checks Whitelist too if ( !$title->userCan( 'read' ) ) {