This commit is contained in:
parent
b0f5c81dbc
commit
bdcb73659d
|
@ -265,8 +265,8 @@ class SpecialContact extends UnlistedSpecialPage
|
|||
|
||||
// get the sender's real IP
|
||||
if (!is_null($wgRequest->getHeader('CF-Connecting-IP'))) {
|
||||
$senderIP = $wgRequest->getHeader('CF-Connecting-IP');
|
||||
elseif (!is_null($wgRequest->getHeader('X-Forwarded-For'))) {
|
||||
$senderIP = $wgRequest->getHeader('CF-Connecting-IP');
|
||||
} elseif (!is_null($wgRequest->getHeader('X-Forwarded-For'))) {
|
||||
$senderIP = $wgRequest->getHeader('X-Forwarded-For');
|
||||
} else {
|
||||
$senderIP = $request->getIP();
|
||||
|
|
Loading…
Reference in New Issue