Fixed Bug in generic Filter function which applies to all logstreams.

This caused REGEX filters to fail, if supported by the LogStream driver.
This commit is contained in:
Andre Lorbach 2013-01-11 17:24:00 +01:00
parent 593e2e4548
commit cbf3858c16

View File

@ -473,10 +473,14 @@ abstract class LogStream {
{ {
// Include Filter // Include Filter
if ( $myfilter[FILTER_MODE] & FILTER_MODE_INCLUDE ) if ( $myfilter[FILTER_MODE] & FILTER_MODE_INCLUDE )
{
// Unless REGEX Filter, this has to be done by the Logstream driver
if ( !($myfilter[FILTER_MODE] & FILTER_MODE_SEARCHREGEX) )
{ {
if ( stripos($propertyvalue, $myfilter[FILTER_VALUE]) === false ) if ( stripos($propertyvalue, $myfilter[FILTER_VALUE]) === false )
$bEval = false; $bEval = false;
} }
}
// Exclude Filter // Exclude Filter
else if ( $myfilter[FILTER_MODE] & FILTER_MODE_EXCLUDE ) else if ( $myfilter[FILTER_MODE] & FILTER_MODE_EXCLUDE )
{ {