commit 017d5a8: [Rules] Fix HTTP_TO_HTTPS rule
    Vsevolod Stakhov 
    vsevolod at highsecure.ru
       
    Fri Apr  9 09:42:04 UTC 2021
    
    
  
Author: Vsevolod Stakhov
Date: 2021-04-09 10:40:05 +0100
URL: https://github.com/rspamd/rspamd/commit/017d5a8d6adafa28b5b6383d01c98f364c700023
[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()
    
    
More information about the Commits
mailing list