]> source.dussan.org Git - rspamd.git/commitdiff
[Rules] Fix HTTP_TO_HTTPS rule
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 9 Apr 2021 09:40:05 +0000 (10:40 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 9 Apr 2021 09:40:05 +0000 (10:40 +0100)
rules/html.lua

index 2b2b415fd3115904adb872c0ce555ba45f165322..2929cb15d0ab5a7f3816af90e1f25bf3535d74d8 100644 (file)
@@ -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()