From 5127f68093f8a0f32ef25ac51361f28224d1ad65 Mon Sep 17 00:00:00 2001 From: Tom Slominski Date: Sun, 1 Mar 2015 21:14:08 +0000 Subject: [PATCH] Removing the secret API code for Google reCAPTCHA sounds like a cool idea, right? --- result.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/result.php b/result.php index 959bcfc..8c3a9ba 100644 --- a/result.php +++ b/result.php @@ -10,7 +10,7 @@ $shorturl = isset( $return['shorturl'] ) ? $return['shorturl'] : ''; $message = isset( $return['message'] ) ? $return['message'] : ''; $title = isset( $return['title'] ) ? $return['title'] : ''; -$recaptcha_data = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret=6Lc-RQETAAAAANBhC2ZdRSWiQQNaDURx2-EIN-SI&response=' . $_REQUEST['g-recaptcha-response']); +$recaptcha_data = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret=' . ISQ::$recaptcha['secret'] . '&response=' . $_REQUEST['g-recaptcha-response']); $recaptcha_json = json_decode($recaptcha_data, TRUE); if ($recaptcha_json['success'] != 'true') {