Skip to content

Commit 2072165

Browse files
Merge pull request #767 from CleanTalk/json_extract_from_gathring.ag
json_extract_from_gathring.ag
2 parents 3895b2e + 2a328c8 commit 2072165

23 files changed

Lines changed: 319 additions & 223 deletions

inc/cleantalk-common.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ function apbct_base_call($params = array(), $reg_flag = false)
193193

194194
// Misc
195195
'auth_key' => $apbct->api_key,
196-
'js_on' => apbct_js_test(Sanitize::cleanTextField(Cookie::get('ct_checkjs')), true) ? 1 : apbct_js_test(TT::toString(Post::get('ct_checkjs'))),
196+
'js_on' => apbct_js_test(Sanitize::cleanTextField(Cookie::getString('ct_checkjs')), true)
197+
? 1
198+
: apbct_js_test(Post::getString('ct_checkjs')),
197199

198200
'agent' => APBCT_AGENT,
199201
'sender_info' => $sender_info,

inc/cleantalk-public-integrations.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1870,19 +1870,16 @@ function ct_quform_post_validate($result, $form)
18701870
* Filter for POST
18711871
*/
18721872
$input_array = apply_filters('apbct__filter_post', $form->getValues());
1873-
18741873
$ct_temp_msg_data = ct_get_fields_any($input_array);
18751874
$sender_email = isset($ct_temp_msg_data['email']) ? $ct_temp_msg_data['email'] : '';
18761875
$sender_emails_array = isset($ct_temp_msg_data['emails_array']) ? $ct_temp_msg_data['emails_array'] : '';
18771876

1878-
$checkjs = apbct_js_test(Sanitize::cleanTextField(Cookie::get('ct_checkjs')), true);
18791877
$base_call_result = apbct_base_call(
18801878
array(
18811879
'message' => $form->getValues(),
18821880
'sender_email' => $sender_email,
18831881
'post_info' => array('comment_type' => $comment_type),
18841882
'sender_info' => array('sender_emails_array' => $sender_emails_array),
1885-
'js_on' => $checkjs,
18861883
)
18871884
);
18881885

js/apbct-public-bundle.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_ext-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_ext-protection_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_full-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_full-protection_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_int-protection.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/apbct-public-bundle_int-protection_gathering.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)