summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-04-09 10:40:05 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-04-09 10:40:05 +0100
commit017d5a8d6adafa28b5b6383d01c98f364c700023 (patch)
treebc63f8f8eed035de7b9c1f0d44ed6311c8d2c657 /rules
parent8e9cde08299838d6cf0d05250240f972983e4fd4 (diff)
downloadrspamd-017d5a8d6adafa28b5b6383d01c98f364c700023.tar.gz
rspamd-017d5a8d6adafa28b5b6383d01c98f364c700023.zip
[Rules] Fix HTTP_TO_HTTPS rule
Diffstat (limited to 'rules')
-rw-r--r--rules/html.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/html.lua b/rules/html.lua
index 2b2b415fd..2929cb15d 100644
--- a/rules/html.lua
+++ b/rules/html.lua
@@ -394,7 +394,7 @@ rspamd_config.HTTP_TO_HTTPS = {
if (not u) then return false end
local url_proto = u:get_protocol()
- if (not url_proto == 'http') then return false end
+ if url_proto ~= 'http' then return false end
-- Capture matches for http in href to https in visible part only
found = true
found_opts = u:get_host()