From b517d54ea27a3911c4fd644c2e428ed622f7e515 Mon Sep 17 00:00:00 2001 From: Luke Hatfield Date: Tue, 18 Jan 2022 22:41:23 -0500 Subject: [PATCH] Update recaptcha-v2-checkbox.php Checking isset on $_POST['g-recaptcha-response'] always passed for me locally on PHP 8.0.14. Changing to !empty actually failed when recaptcha was unchecked, which is the expected behavior. --- examples/recaptcha-v2-checkbox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/recaptcha-v2-checkbox.php b/examples/recaptcha-v2-checkbox.php index 9395d59..5a67a08 100644 --- a/examples/recaptcha-v2-checkbox.php +++ b/examples/recaptcha-v2-checkbox.php @@ -77,7 +77,7 @@

Add your keys

If you do not have keys already then visit https://www.google.com/recaptcha/admin to generate them. Edit this file and set the respective keys in the config.php file or directly to $siteKey and $secret. Reload the page after this.