From 017d5a8d6adafa28b5b6383d01c98f364c700023 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 9 Apr 2021 10:40:05 +0100 Subject: [PATCH] [Rules] Fix HTTP_TO_HTTPS rule --- rules/html.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.5