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
FauxRequest: Avoid header leak
[lhc/web/wiklou.git]
/
includes
/
WebRequest.php
diff --git
a/includes/WebRequest.php
b/includes/WebRequest.php
index
850f101
..
b4b8be9
100644
(file)
--- a/
includes/WebRequest.php
+++ b/
includes/WebRequest.php
@@
-871,7
+871,7
@@
class WebRequest {
/**
* Initialise the header list
*/
/**
* Initialise the header list
*/
- pr
ivate
function initHeaders() {
+ pr
otected
function initHeaders() {
if ( count( $this->headers ) ) {
return;
}
if ( count( $this->headers ) ) {
return;
}
@@
-1324,6
+1324,13
@@
class FauxRequest extends WebRequest {
$this->protocol = $protocol;
}
$this->protocol = $protocol;
}
+ /**
+ * Initialise the header list
+ */
+ protected function initHeaders() {
+ // Nothing to init
+ }
+
/**
* @param string $name
* @param string $default
/**
* @param string $name
* @param string $default