From bfc0f6d6af59e89ad3f0c2ec95e80ec71ec6cea4 Mon Sep 17 00:00:00 2001 From: Drake Panzer Date: Sat, 24 Oct 2020 19:21:37 -0600 Subject: [PATCH] t --- includes/SpecialContact.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SpecialContact.php b/includes/SpecialContact.php index 8b11c00..e580289 100644 --- a/includes/SpecialContact.php +++ b/includes/SpecialContact.php @@ -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'] )