mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
IDPS: handle empty metadata value (#5357)
This commit is contained in:
parent
d29b652cc0
commit
035dc45063
@ -195,7 +195,7 @@ class RuleCache(object):
|
||||
elif parts[0] in record['metadata']:
|
||||
new_content = parts[1]
|
||||
else:
|
||||
new_content = parts[1] if len(parts) > 1 else None
|
||||
new_content = parts[1] if len(parts) > 1 else ""
|
||||
record['metadata'][parts[0]] = new_content
|
||||
else:
|
||||
record[prop] = value
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user