Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
@@ -713,19 +713,19 @@ class _Email
|
||||
switch ( $row['rule_criteria_field'] )
|
||||
{
|
||||
case 'to':
|
||||
$analyse = implode( ',', $this->to );
|
||||
$analyze = implode( ',', $this->to );
|
||||
break;
|
||||
|
||||
case 'from':
|
||||
$analyse = $this->from;
|
||||
$analyze = $this->from;
|
||||
break;
|
||||
|
||||
case 'sbjt':
|
||||
$analyse = $this->subject;
|
||||
$analyze = $this->subject;
|
||||
break;
|
||||
|
||||
case 'body':
|
||||
$analyse = $this->message;
|
||||
$analyze = $this->message;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -733,22 +733,22 @@ class _Email
|
||||
switch ( $row['rule_criteria_type'] )
|
||||
{
|
||||
case 'ctns':
|
||||
$match = (bool) ( mb_strpos( $analyse, $row['rule_criteria_value'] ) !== FALSE );
|
||||
$match = (bool) ( mb_strpos( $analyze, $row['rule_criteria_value'] ) !== FALSE );
|
||||
break;
|
||||
|
||||
case 'eqls':
|
||||
if ( mb_strpos( $analyse, ',' ) !== FALSE )
|
||||
if ( mb_strpos( $analyze, ',' ) !== FALSE )
|
||||
{
|
||||
$match = (bool) \in_array( $analyse, explode( ',', $analyse ) );
|
||||
$match = (bool) \in_array( $analyze, explode( ',', $analyze ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
$match = (bool) ( $analyse == $row['rule_criteria_value'] );
|
||||
$match = (bool) ( $analyze == $row['rule_criteria_value'] );
|
||||
}
|
||||
break;
|
||||
|
||||
case 'regx':
|
||||
$match = (bool) ( preg_match( "/{$row['rule_criteria_value']}/", $analyse ) == 1 );
|
||||
$match = (bool) ( preg_match( "/{$row['rule_criteria_value']}/", $analyze ) == 1 );
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user