[Private] Bug With Comments Recaptcha

Ticket for: User Verification
0
Bug With Comments Recaptcha 1
Anonymous
Oct 03, 2022 03:46 PM 1 Answers
Member Since Jan 1970
Unsolved Solved Mark as Solved Mark as Unsolved
Subscribed Subscribe Not subscribe
Flag(0)

Howdy I found a bug in your UserVerification plugin. The recaptcha field on comment forms is broken indicating the sitekey is invalid. This is because it includes the php constructs in the html output. Fix below:

--- functions-recaptcha.php-old.php 2022-10-03 20:13:14.278849000 +1030
+++ functions-recaptcha.php 2022-10-03 20:14:36.077653000 +1030
@@ -380,7 +380,7 @@
$html .= ' data-size="invisible" ';
}

- $html .= 'data-sitekey="<?php echo ' . esc_attr($sitekey) . '; ?>"></div>';
+ $html .= 'data-sitekey="' . esc_attr($sitekey) . '"></div>';

$default['fields']['recaptcha'] = $html;

0 Subscribers
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
Bug With Comments Recaptcha 2
Azizul Raju
Oct 04, 2022
Flag(0)

Hi,  we've fixed the issue and updated the plugin. Could you please install the latest version and give it a try?

Regards.

Sign in to Reply
Replying as Submit