PluginProbe
Contact Forms by Cimatti / 1.9.2
Contact Forms by Cimatti v1.9.2
2.3.6 2.3.5 2.3.0 2.2.32 2.2.4 2.2.0 2.1.2 2.1.1 trunk 1.0 1.1 1.2 1.2.1 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 All 62 releases
← All changes | classes/Element/Captcha.php +2 -3 2.2.41.9.2 View file →
@@ -1,6 +1,5 @@
1 1 <?php
2 -// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped, WordPress.Security.EscapeOutput.HeredocOutputNotEscaped, PluginCheck.CodeAnalysis.Heredoc -- PFBC framework extension, HTML output is controlled
3 2 class AccuaForm_Element_Captcha extends Element {
4 3 protected $privateKey = "6LcazwoAAAAAAD-auqUl-4txAK3Ky5jc5N3OXN0_";
5 4 protected $publicKey = "6LcazwoAAAAAADamFkwqj5KN1Gla7l4fpMMbdZfi";
6 5
@@ -8,9 +7,9 @@
8 7 if ($properties === null && is_array($unused)) {
9 8 $properties = $unused;
10 9 }
11 10 parent::__construct($label, "recaptcha_response_field", $properties);
12 - $validator = new AccuaForm_Validation_Captcha(__("The reCAPTCHA response provided was incorrect. Please retry.", 'contact-forms'));
11 + $validator = new AccuaForm_Validation_Captcha(__("The reCATPCHA response provided was incorrect. Please re-try.", 'contact-forms'));
13 12 $validator->configure(array('privateKey'=>$this->privateKey));
14 13 $this->setValidation($validator);
15 14 }
16 15
@@ -16,9 +15,9 @@
16 15
17 16 public function render() {
18 17 $js_lang = _accua_forms_json_encode($this->form->getLanguage());
19 18 $js_field_id = _accua_forms_json_encode($this->attributes["id"]);
20 - $js_path = _accua_forms_json_encode(ACCUA_FORMS_DIR_URL . 'assets/js/frontend/recaptcha.js');
19 + $js_path = _accua_forms_json_encode(ACCUA_FORMS_DIR_URL . 'accua-recaptcha.js');
21 20 $js_publicKey = _accua_forms_json_encode($this->publicKey);
22 21
23 22 $field_id = htmlspecialchars($this->attributes["id"], ENT_QUOTES);
24 23 $publicKey = htmlspecialchars($this->publicKey, ENT_QUOTES);