diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2008-03-21 11:49:34 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2008-03-21 11:49:34 +0100 |
commit | 086ae52d12011746a75f5588e877347bc0457352 (patch) | |
tree | e73263c7a29d0f94fafb874562610e16eb292ba8 /img_auth.php | |
parent | 749e7fb2bae7bbda855de3c9e319435b9f698ff7 (diff) |
Update auf MediaWiki 1.12.0
Diffstat (limited to 'img_auth.php')
-rw-r--r-- | img_auth.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/img_auth.php b/img_auth.php index 2e8f6240..bb419b39 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 <<<END + echo <<<ENDS <html> <body> <h1>Access Denied</h1> <p>You need to log in to access files on this server.</p> </body> </html> -END; +ENDS; wfLogProfilingData(); exit(); -}
\ No newline at end of file +} |