mirror of
https://github.com/falcosecurity/falco.git
synced 2026-04-05 03:22:41 +00:00
More changes to swich from regexes to patterns.
This commit is contained in:
@@ -213,7 +213,7 @@ void falco_ruleset::enable(const string &substring, bool enabled, uint16_t rules
|
||||
{
|
||||
bool matches;
|
||||
|
||||
matches = (val.first.find(substring) != string::npos);
|
||||
matches = (substring == "" || (val.first.find(substring) != string::npos));
|
||||
|
||||
if (matches)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user