Plugin Directory

Changeset 3160664


Ignore:
Timestamp:
10/01/2024 11:41:32 AM (18 months ago)
Author:
zerobounce
Message:

Attached assets

Location:
zerobounce
Files:
8 added
4 edited

Legend:

Unmodified
Added
Removed
  • zerobounce/trunk/admin/js/zerobounce-email-validator-admin.js

    r3160477 r3160664  
    760760            });
    761761        }
     762
    762763        getStatus(1);
    763764    });
  • zerobounce/trunk/public/class-zerobounce-email-validator-form-public.php

    r3105604 r3160664  
    103103                ]
    104104            );
    105 
    106             $today = new \DateTime('now');
    107             $result = $wpdb->query($wpdb->prepare("UPDATE " . $wpdb->prefix . "zerobounce_credit_usage_logs SET credits_used=credits_used+1 WHERE date='%s'", $today->format("Y-m-d")), ARRAY_A);
    108 
    109             if ($result === FALSE || $result < 1) {
    110                 $wpdb->insert($wpdb->prefix . 'zerobounce_credit_usage_logs', ['credits_used' => 1, 'date' => $today->format("Y-m-d")]);
    111             }
    112105        }
    113106
  • zerobounce/trunk/public/class-zerobounce-email-validator-public.php

    r3160358 r3160664  
    9393            );
    9494
    95             $today = new \DateTime('now');
    96             $result = $wpdb->query($wpdb->prepare("UPDATE " . $wpdb->prefix . "zerobounce_credit_usage_logs SET credits_used=credits_used+1 WHERE date='%s'", $today->format("Y-m-d")), ARRAY_A);
    97 
    98             if ($result === FALSE || $result < 1) {
    99                 $wpdb->insert($wpdb->prefix . 'zerobounce_credit_usage_logs', ['credits_used' => 1, 'date' => $today->format("Y-m-d")]);
    100             }
    101 
    10295            $validation_pass = get_option('zerobounce_settings_validation_pass');
    10396
     
    148141        foreach ($form_data['fields'] as $key => $field) {
    149142            $value = $field['value'];
    150             if (!empty($value) && is_string($value) && preg_match('/@.+\./', $value) && !preg_match('/mailto:/i', $value)) {
     143            if (!empty($value) && is_string($value) && preg_match('/@.+\./', $value) && !str_contains($value, "\n") && !str_contains($value, '\n')) {
    151144                $ninjaForm = new Zerobounce_Email_Validator_Form_Public('ninjaforms', $form_data['id']);
    152145                $validationInfo = $ninjaForm->prep_validation_info($value);
  • zerobounce/trunk/zerobounce-email-validator.php

    r3160620 r3160664  
    1010 *
    1111 * @link              https://www.zerobounce.net/
    12  * @since             1.1.1
     12 * @since             1.0.10
    1313 * @package           Zerobounce_Email_Validator
    1414 *
     
    1717 * Plugin URI:        https://wordpress.org/plugins/zerobounce/
    1818 * Description:       ZeroBounce Email Validation Plugin
    19  * Version:           1.1.1
     19 * Version:           1.0.27
    2020 * Author:            ZeroBounce
    2121 * Author URI:        https://www.zerobounce.net/
     
    3535}
    3636
    37 define('ZEROBOUNCE_EMAIL_VALIDATOR_VERSION', '1.1.1');
     37define('ZEROBOUNCE_EMAIL_VALIDATOR_VERSION', '1.0.27');
    3838
    3939/**
     
    8282 * not affect the page life cycle.
    8383 *
    84  * @since    1.1.1
     84 * @since    1.0.0
    8585 */
    8686function run_zerobounce_email_validator()
Note: See TracChangeset for help on using the changeset viewer.