Removing the secret API code for Google reCAPTCHA sounds like a cool idea, right?

This commit is contained in:
Tom Slominski
2015-03-01 21:14:08 +00:00
parent 8e94aa40a0
commit 5127f68093

View File

@@ -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') {