X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=img_auth.php;h=bb419b39aa222a297c3aa3721990d03fe4517440;hb=fb38bbf72f7755a40cb8b277fe2f4244b1477fcd;hp=2e8f6240f718d02b8fec10e621dbc7c13a5377d7;hpb=2062e9508fc22de48001be3c28bf7664a9e617f9;p=lhc%2Fweb%2Fwiklou.git diff --git a/img_auth.php b/img_auth.php index 2e8f6240f7..bb419b39aa 100644 --- a/img_auth.php +++ b/img_auth.php @@ -66,7 +66,7 @@ if( is_dir( $filename ) ) { // Stream the requested file wfDebugLog( 'img_auth', "Streaming `{$filename}`" ); -wfStreamFile( $filename ); +wfStreamFile( $filename, array( 'Cache-Control: private', 'Vary: Cookie' ) ); wfLogProfilingData(); /** @@ -75,15 +75,16 @@ wfLogProfilingData(); */ function wfForbidden() { header( 'HTTP/1.0 403 Forbidden' ); + header( 'Vary: Cookie' ); header( 'Content-Type: text/html; charset=utf-8' ); - echo <<

Access Denied

You need to log in to access files on this server.

-END; +ENDS; wfLogProfilingData(); exit(); -} \ No newline at end of file +}