This commit is contained in:
Cyberes 2020-10-24 19:21:37 -06:00
parent 39b05f8a40
commit bfc0f6d6af
1 changed files with 2 additions and 2 deletions

View File

@ -438,12 +438,12 @@ class SpecialContact extends UnlistedSpecialPage
private function verifyCaptcha($recaptchaResponse)
{
global $wgRequest;
global $wgRequest, $wgReCaptchaSecretKey;
$x = $wgRequest->getHeader("REMOTE_ADDR");
echo $x;
$post_data = http_build_query(
array(
'secret' => CAPTCHA_SECRET,
'secret' => $wgReCaptchaSecretKey,
'response' => $_POST['g-recaptcha-response'],
'remoteip' => $_SERVER['REMOTE_ADDR']
)