From: Vsevolod Stakhov Date: Fri, 9 Apr 2021 09:40:05 +0000 (+0100) Subject: [Rules] Fix HTTP_TO_HTTPS rule X-Git-Tag: 3.0~513 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=017d5a8d6adafa28b5b6383d01c98f364c700023;p=rspamd.git [Rules] Fix HTTP_TO_HTTPS rule --- 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()