PluginProbe
Patchstack – WordPress & Plugins Security / 2.1.6
Patchstack – WordPress & Plugins Security v2.1.6
2.3.7 trunk 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.16 2.1.17 2.1.18 2.1.19 2.1.2 2.1.20 2.1.21 2.1.22 2.1.23 2.1.24 2.1.25 2.1.3 2.1.4 2.1.5 2.1.6 All 49 releases
← All changes | includes/views/captcha_v3.php +2 -5 trunk2.1.6 View file →
@@ -2,17 +2,14 @@
2 2 // Do not allow the file to be called directly.
3 3 if ( ! defined( 'ABSPATH' ) ) {
4 4 exit;
5 5 }
6 -
7 -$id = 'g-recaptcha-response-' . uniqid();
8 -
9 6 ?>
10 7 <script id="gRecaptchaSrc" src="https://www.google.com/recaptcha/api.js?render=<?php echo esc_attr( $site_key ); ?>"></script>
11 8 <script>
12 9 grecaptcha.ready(function() {
13 10 grecaptcha.execute('<?php echo esc_attr( $site_key ); ?>', {action: 'submit'}).then(function(token) {
14 - document.getElementById("<?php echo $id; ?>").value = token;
11 + document.getElementById("g-recaptcha-response").value = token;
15 12 });
16 13 });
17 14 </script>
18 -<input type="hidden" id="<?php echo $id; ?>" name="g-recaptcha-response" />
15 +<input type="hidden" id="g-recaptcha-response" name="g-recaptcha-response" />