Plugin Directory

Changeset 3024853


Ignore:
Timestamp:
01/22/2024 03:20:09 AM (2 years ago)
Author:
mailboxvalidator
Message:

Add new checking to prevent the abuse of the API.

Location:
mailboxvalidator-email-validator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mailboxvalidator-email-validator/trunk/mailboxvalidator-email-validator.php

    r2996124 r3024853  
    44Plugin URL:   https://developer.wordpress.org/plugins/mailboxvalidator-email-validator
    55Description:  This plugin enables you to block invalid, disposable, free or role-based email from registering for your service. This plugin has been tested successfully to support WooCommerce, JetPack, Contact Form 7, Formidable forms and many more.
    6 Version:      1.6.0
     6Version:      1.6.1
    77Author:       MailboxValidator
    88Author URI:   https://mailboxvalidator.com
     
    1515
    1616// Defined plugin version.
    17 define( 'MBV_PLUGIN_VER', '1.6.0' );
     17define( 'MBV_PLUGIN_VER', '1.6.1' );
    1818
    1919// Need to include because some plugin called is_email in front end.
     
    967967        $mbv_options = get_option( 'mbv_email_validator' );
    968968       
     969        $mbv_options['api_key'] = trim($mbv_options['api_key']);
     970       
    969971        $admin_email = $this->mbv_get_admin_email();
    970972       
     
    985987
    986988        // if ( ( ! ( $mbv_options['api_key'] == '' ) ) && ( $email != '' ) ) {
    987         if ( ( ! ( $mbv_options['api_key'] == '' ) ) && ( $email != '' ) && ( $email != $admin_email ) ) {
     989        // if ( ( ! ( $mbv_options['api_key'] == '' ) ) && ( $email != '' ) && ( $email != $admin_email ) ) {
     990        if ( ( ! ( $mbv_options['api_key'] == '' ) ) && ( $email != '' ) && ( $email != $admin_email ) && (filter_var(trim($email), FILTER_VALIDATE_EMAIL)) && (preg_match('/^[A-Z\d]+$/', $mbv_options['api_key'])) ) {
    988991            // do the email validation
    989992           
    990             $validation_result = $this->mbv_email_validation( $email, $mbv_options );
     993            $validation_result = $this->mbv_email_validation( trim($email), $mbv_options );
    991994           
    992995            if ( ( is_array( $validation_result ) ) && array_key_exists( 'status', $validation_result ) ) {
  • mailboxvalidator-email-validator/trunk/readme.txt

    r2996124 r3024853  
    44Tags: email checker, email validation, form validation, email verify, email filter, disposable email, free email, role-based email, spam blocking, email validator
    55Tested up to: 6.4.1
    6 Stable tag: 1.6.0
     6Stable tag: 1.6.1
    77
    88Email verification for WordPress forms. Block disposable, block spam, block invalid email, block free email and role-based email.
     
    9595== Changelog ==
    9696
     97= 1.6.1 =
     98* Add new checking to prevent the abuse of the API.
     99
    97100= 1.6.0 =
    98101* Update to use v2 for MailboxValidator API through MailboxValiator PHP SDK, and tested with WordPress 6.4.1.
Note: See TracChangeset for help on using the changeset viewer.