Skip to content
Snippets Groups Projects
Verified Commit 027b66fb authored by Petr Špaček's avatar Petr Špaček Committed by Tomas Krizek
Browse files

daf: fix add() handling of empty rule strings

parent be07f937
No related branches found
No related tags found
Loading
......@@ -75,6 +75,9 @@ end
local function parse_rule(g)
-- Allow action without filter
local tok = g()
if tok == nil then
error('empty rule is not allowed')
end
if not filters[tok:lower()] then
return tok, nil
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment