mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-05 08:40:52 +00:00
update(userspace/engine): minor improvements and bug fixes on engine and rule loader
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
@@ -34,7 +34,10 @@ bool falco_common::parse_priority(string v, priority_type& out)
|
||||
{
|
||||
auto p = priority_names[i];
|
||||
transform(p.begin(), p.end(), p.begin(), [](int c){return tolower(c);});
|
||||
if (p.compare(0, v.size(), v) == 0)
|
||||
// note: for legacy reasons, "Info" and "Informational" has been used
|
||||
// interchangeably and ambiguously, so this is the only edge case for
|
||||
// which we can't apply strict equality check
|
||||
if (p == v || (v == "informational" && p == "info"))
|
||||
{
|
||||
out = (priority_type) i;
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user