Merge branch 'dev-bugfix-global-drop-activation' into 'dev'

Dev bugfix global drop activation

See merge request Shinobi-Systems/Shinobi!208
merge-requests/210/head
Moe 2020-06-27 17:29:19 +00:00
commit b384664807
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ module.exports = function(s,config,lang){
var defaultDrop = true; // forces unmatched events to be dropped
var testMatrices = [...allMatrices] // default
var filters = currentConfig.detector_filters
var hasFilters = (filters.length > 0)
var hasFilters = (Object.keys(filters).length > 0)
Object.keys(filters).forEach(function(key){
var conditionChain = {}
testMatrices = [...allMatrices] // for new filter reset the matrices to be tested against