Changeset 2792102
- Timestamp:
- 09/29/2022 07:41:10 PM (3 years ago)
- Location:
- gravity-forms-email-blacklist
- Files:
-
- 6 edited
- 1 copied
-
tags/2.5.2 (copied) (copied from gravity-forms-email-blacklist/trunk)
-
tags/2.5.2/gf-emailblacklist.php (modified) (1 diff)
-
tags/2.5.2/includes/class-gfemailblacklist.php (modified) (2 diffs)
-
tags/2.5.2/readme.txt (modified) (2 diffs)
-
trunk/gf-emailblacklist.php (modified) (1 diff)
-
trunk/includes/class-gfemailblacklist.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gravity-forms-email-blacklist/tags/2.5.2/gf-emailblacklist.php
r2761293 r2792102 4 4 * Plugin URI: https://wordpress.org/plugins/gravity-forms-email-blacklist/ 5 5 * Description: This plugin adds the ability to set a blacklist of domains on the email field in gravity forms. 6 * Version: 2.5. 16 * Version: 2.5.2 7 7 * Author: hallme 8 8 * Author URI: https://github.com/hallme/gravityforms-emailblacklist -
gravity-forms-email-blacklist/tags/2.5.2/includes/class-gfemailblacklist.php
r2761293 r2792102 183 183 } 184 184 185 // Get the domain from user enter d email.185 // Get the domain from user entered email. 186 186 $email = $this->gf_emailblacklist_clean( rgpost( "input_{$field['id']}" ) ); 187 187 $domain = $this->gf_emailblacklist_clean( rgar( explode( '@', $email ), 1 ) ); 188 $tld = str str( $domain, '.' );188 $tld = strrchr( $domain, '.' ); 189 189 190 190 // Collect banned domains from backend and clean up. … … 216 216 $blacklist = array_map( array( $this, 'gf_emailblacklist_clean' ), $blacklist ); 217 217 218 // if the email, domain or top-level domain isn't b alckliested, skip.218 // if the email, domain or top-level domain isn't blacklisted, skip. 219 219 if ( ! in_array( $email, $blacklist, true ) && ! in_array( $domain, $blacklist, true ) && ! in_array( $tld, $blacklist, true ) ) { 220 220 continue; -
gravity-forms-email-blacklist/tags/2.5.2/readme.txt
r2761293 r2792102 1 1 ==== Gravity Forms Email Blacklist ==== 2 Contributors: hallme, timbhowe 2 Contributors: hallme, timbhowe, matt-h-1, Matt Thomas 3 3 Donate link: N/A 4 4 Tags: gravity forms, gravity form, forms, gravity, form, email blacklist, block email, blacklist 5 5 Requires at least: 3.8 6 6 Tested up to: 6.0.1 7 Stable tag: 2.5. 17 Stable tag: 2.5.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 60 60 === Changelog === 61 61 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 62 65 = 2.5.1 = 63 66 * Updated static setting strings to allow them to be translated. -
gravity-forms-email-blacklist/trunk/gf-emailblacklist.php
r2761293 r2792102 4 4 * Plugin URI: https://wordpress.org/plugins/gravity-forms-email-blacklist/ 5 5 * Description: This plugin adds the ability to set a blacklist of domains on the email field in gravity forms. 6 * Version: 2.5. 16 * Version: 2.5.2 7 7 * Author: hallme 8 8 * Author URI: https://github.com/hallme/gravityforms-emailblacklist -
gravity-forms-email-blacklist/trunk/includes/class-gfemailblacklist.php
r2761293 r2792102 183 183 } 184 184 185 // Get the domain from user enter d email.185 // Get the domain from user entered email. 186 186 $email = $this->gf_emailblacklist_clean( rgpost( "input_{$field['id']}" ) ); 187 187 $domain = $this->gf_emailblacklist_clean( rgar( explode( '@', $email ), 1 ) ); 188 $tld = str str( $domain, '.' );188 $tld = strrchr( $domain, '.' ); 189 189 190 190 // Collect banned domains from backend and clean up. … … 216 216 $blacklist = array_map( array( $this, 'gf_emailblacklist_clean' ), $blacklist ); 217 217 218 // if the email, domain or top-level domain isn't b alckliested, skip.218 // if the email, domain or top-level domain isn't blacklisted, skip. 219 219 if ( ! in_array( $email, $blacklist, true ) && ! in_array( $domain, $blacklist, true ) && ! in_array( $tld, $blacklist, true ) ) { 220 220 continue; -
gravity-forms-email-blacklist/trunk/readme.txt
r2761293 r2792102 1 1 ==== Gravity Forms Email Blacklist ==== 2 Contributors: hallme, timbhowe 2 Contributors: hallme, timbhowe, matt-h-1, Matt Thomas 3 3 Donate link: N/A 4 4 Tags: gravity forms, gravity form, forms, gravity, form, email blacklist, block email, blacklist 5 5 Requires at least: 3.8 6 6 Tested up to: 6.0.1 7 Stable tag: 2.5. 17 Stable tag: 2.5.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 60 60 === Changelog === 61 61 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 62 65 = 2.5.1 = 63 66 * Updated static setting strings to allow them to be translated.
Note: See TracChangeset
for help on using the changeset viewer.