]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Oops, fix flag name
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 25 Aug 2019 08:43:47 +0000 (09:43 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 25 Aug 2019 08:43:47 +0000 (09:43 +0100)
lualib/lua_util.lua

index ce494ed519bd7a8b1c29a5e9ffba9784e97e4be6..8f24b28717ed0b83b5347a7c11f791849f594299 100644 (file)
@@ -706,7 +706,7 @@ exports.filter_specific_urls = function (urls, params)
 
     if esld then
       -- Special cases
-      if (u:get_protocol() ~= 'mailto') and (not flags.url_displayed) then
+      if (u:get_protocol() ~= 'mailto') and (not flags.html_displayed) then
         if flags.obscured then
           priority = 3
         else
@@ -716,7 +716,7 @@ exports.filter_specific_urls = function (urls, params)
             priority = 2
           end
         end
-      elseif u:is_html_displayed() then
+      elseif flags.html_displayed then
         priority = 0
       end