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

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