Skip to content

Commit

Permalink
Update core/CF7_AntiSpam_Filters.php
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Golinelli <[email protected]>
  • Loading branch information
gardenboi and erikyo authored Jan 2, 2024
1 parent f497462 commit 243df51
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/CF7_AntiSpam_Filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,13 @@ public function cf7a_cron_unban() {
return true;
}

/**
* Checks the length of a string and returns a specific part of it based on a given index.
*
* @param string $el The input string to be checked.
* @param int $n The index used to retrieve a specific part of the string.
* @return string The extracted part of the string based on the given index, or an empty string if the conditions are not met.
*/
public function cf7a_check_length_exclusive( $el, $n ) {
if ( strlen( $el ) >= 5 ) {
$l = explode( '-', $el );
Expand Down

0 comments on commit 243df51

Please sign in to comment.