Skip to content

Commit

Permalink
[Minor] Fix missing selector check
Browse files Browse the repository at this point in the history
  • Loading branch information
moisseev committed Jun 4, 2020
1 parent 20a8767 commit 25870a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rules/controller/selectors.lua
Expand Up @@ -27,7 +27,7 @@ local function handle_list_extractors(_, conn)
end

local function handle_check_selector(_, conn, req_params)
if req_params.selector then
if req_params.selector and req_params.selector ~= '' then
local selector = lua_selectors.create_selector_closure(rspamd_config,
req_params.selector, '', true)
conn:send_ucl({success = selector and true})
Expand All @@ -37,7 +37,7 @@ local function handle_check_selector(_, conn, req_params)
end

local function handle_check_message(task, conn, req_params)
if req_params.selector then
if req_params.selector and req_params.selector ~= '' then
local selector = lua_selectors.create_selector_closure(rspamd_config,
req_params.selector, '', true)
if not selector then
Expand Down

0 comments on commit 25870a7

Please sign in to comment.