X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=img_auth.php;h=d7125897c5f9941e629bb361aa961067ec3888ac;hb=a827739fb5e494ad657719d58ca5158247ed632f;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' ) ) {