Changeset 2794561
- Timestamp:
- 10/05/2022 01:21:15 PM (3 years ago)
- File:
-
- 1 edited
-
ldd-directory-lite/trunk/includes/ajax.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ldd-directory-lite/trunk/includes/ajax.php
r2788952 r2794561 57 57 58 58 59 $captcha= $_POST['g-recaptcha-response'];59 $captcha=esc_html($_POST['g-recaptcha-response']); 60 60 $secretkey = ldl()->get_option('google_recaptcha_secret'); 61 61 $data = array( … … 146 146 147 147 ldl()->update_option('allow_tracking_popup_done', true); 148 ldl()->update_option('allow_tracking', $_POST['allow_tracking']== 'yes' ? true : false);148 ldl()->update_option('allow_tracking', sanitize_text_field($_POST['allow_tracking']) == 'yes' ? true : false); 149 149 150 150 die;
Note: See TracChangeset
for help on using the changeset viewer.