dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bump and prep 1.34.2
[lhc/web/wiklou.git]
/
img_auth.php
diff --git
a/img_auth.php
b/img_auth.php
index
6e45e4e
..
44ef0a1
100644
(file)
--- a/
img_auth.php
+++ b/
img_auth.php
@@
-39,6
+39,7
@@
*/
define( 'MW_NO_OUTPUT_COMPRESSION', 1 );
*/
define( 'MW_NO_OUTPUT_COMPRESSION', 1 );
+define( 'MW_ENTRY_POINT', 'img_auth' );
require __DIR__ . '/includes/WebStart.php';
# Set action base paths so that WebRequest::getPathInfo()
require __DIR__ . '/includes/WebStart.php';
# Set action base paths so that WebRequest::getPathInfo()
@@
-96,8
+97,10
@@
function wfImageAuthMain() {
}
if ( $be->fileExists( [ 'src' => $filename ] ) ) {
wfDebugLog( 'img_auth', "Streaming `" . $filename . "`." );
}
if ( $be->fileExists( [ 'src' => $filename ] ) ) {
wfDebugLog( 'img_auth', "Streaming `" . $filename . "`." );
- $be->streamFile( [ 'src' => $filename ],
- [ 'Cache-Control: private', 'Vary: Cookie' ] );
+ $be->streamFile( [
+ 'src' => $filename,
+ 'headers' => [ 'Cache-Control: private', 'Vary: Cookie' ]
+ ] );
} else {
wfForbidden( 'img-auth-accessdenied', 'img-auth-nofile', $path );
}
} else {
wfForbidden( 'img-auth-accessdenied', 'img-auth-nofile', $path );
}