Plugin Directory

Changeset 2792102


Ignore:
Timestamp:
09/29/2022 07:41:10 PM (3 years ago)
Author:
hallme
Message:

Update to version 2.5.2 from GitHub

Location:
gravity-forms-email-blacklist
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gravity-forms-email-blacklist/tags/2.5.2/gf-emailblacklist.php

    r2761293 r2792102  
    44 * Plugin URI: https://wordpress.org/plugins/gravity-forms-email-blacklist/
    55 * Description: This plugin adds the ability to set a blacklist of domains on the email field in gravity forms.
    6  * Version: 2.5.1
     6 * Version: 2.5.2
    77 * Author: hallme
    88 * Author URI: https://github.com/hallme/gravityforms-emailblacklist
  • gravity-forms-email-blacklist/tags/2.5.2/includes/class-gfemailblacklist.php

    r2761293 r2792102  
    183183            }
    184184
    185             // Get the domain from user enterd email.
     185            // Get the domain from user entered email.
    186186            $email  = $this->gf_emailblacklist_clean( rgpost( "input_{$field['id']}" ) );
    187187            $domain = $this->gf_emailblacklist_clean( rgar( explode( '@', $email ), 1 ) );
    188             $tld    = strstr( $domain, '.' );
     188            $tld    = strrchr( $domain, '.' );
    189189
    190190            // Collect banned domains from backend and clean up.
     
    216216            $blacklist = array_map( array( $this, 'gf_emailblacklist_clean' ), $blacklist );
    217217
    218             // if the email, domain or top-level domain isn't balckliested, skip.
     218            // if the email, domain or top-level domain isn't blacklisted, skip.
    219219            if ( ! in_array( $email, $blacklist, true ) && ! in_array( $domain, $blacklist, true ) && ! in_array( $tld, $blacklist, true ) ) {
    220220                continue;
  • gravity-forms-email-blacklist/tags/2.5.2/readme.txt

    r2761293 r2792102  
    11==== Gravity Forms Email Blacklist ====
    2 Contributors: hallme, timbhowe
     2Contributors: hallme, timbhowe, matt-h-1, Matt Thomas
    33Donate link: N/A
    44Tags: gravity forms, gravity form, forms, gravity, form, email blacklist, block email, blacklist
    55Requires at least: 3.8
    66Tested up to: 6.0.1
    7 Stable tag: 2.5.1
     7Stable tag: 2.5.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6060=== Changelog ===
    6161
     62= 2.5.2 =
     63* Fix: Updated method for getting the TLD to make sure the domain wildcards work in the case of a sub-domain email.
     64
    6265= 2.5.1 =
    6366* Updated static setting strings to allow them to be translated.
  • gravity-forms-email-blacklist/trunk/gf-emailblacklist.php

    r2761293 r2792102  
    44 * Plugin URI: https://wordpress.org/plugins/gravity-forms-email-blacklist/
    55 * Description: This plugin adds the ability to set a blacklist of domains on the email field in gravity forms.
    6  * Version: 2.5.1
     6 * Version: 2.5.2
    77 * Author: hallme
    88 * Author URI: https://github.com/hallme/gravityforms-emailblacklist
  • gravity-forms-email-blacklist/trunk/includes/class-gfemailblacklist.php

    r2761293 r2792102  
    183183            }
    184184
    185             // Get the domain from user enterd email.
     185            // Get the domain from user entered email.
    186186            $email  = $this->gf_emailblacklist_clean( rgpost( "input_{$field['id']}" ) );
    187187            $domain = $this->gf_emailblacklist_clean( rgar( explode( '@', $email ), 1 ) );
    188             $tld    = strstr( $domain, '.' );
     188            $tld    = strrchr( $domain, '.' );
    189189
    190190            // Collect banned domains from backend and clean up.
     
    216216            $blacklist = array_map( array( $this, 'gf_emailblacklist_clean' ), $blacklist );
    217217
    218             // if the email, domain or top-level domain isn't balckliested, skip.
     218            // if the email, domain or top-level domain isn't blacklisted, skip.
    219219            if ( ! in_array( $email, $blacklist, true ) && ! in_array( $domain, $blacklist, true ) && ! in_array( $tld, $blacklist, true ) ) {
    220220                continue;
  • gravity-forms-email-blacklist/trunk/readme.txt

    r2761293 r2792102  
    11==== Gravity Forms Email Blacklist ====
    2 Contributors: hallme, timbhowe
     2Contributors: hallme, timbhowe, matt-h-1, Matt Thomas
    33Donate link: N/A
    44Tags: gravity forms, gravity form, forms, gravity, form, email blacklist, block email, blacklist
    55Requires at least: 3.8
    66Tested up to: 6.0.1
    7 Stable tag: 2.5.1
     7Stable tag: 2.5.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6060=== Changelog ===
    6161
     62= 2.5.2 =
     63* Fix: Updated method for getting the TLD to make sure the domain wildcards work in the case of a sub-domain email.
     64
    6265= 2.5.1 =
    6366* Updated static setting strings to allow them to be translated.
Note: See TracChangeset for help on using the changeset viewer.