]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Html: Support ID component
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 15 Jun 2021 12:46:29 +0000 (13:46 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 15 Jun 2021 12:46:29 +0000 (13:46 +0100)
src/libserver/html/html.cxx
src/libserver/html/html_tag.hxx

index 5c0753d4abeae2902f912e9618c7355ab753b7e4..fda68bf045d5ad9895c9284559ee7b7428c8ee14 100644 (file)
@@ -65,6 +65,7 @@ auto html_components_map = frozen::make_unordered_map<frozen::string, html_compo
                                {"size", html_component_type::RSPAMD_HTML_COMPONENT_SIZE},
                                {"rel", html_component_type::RSPAMD_HTML_COMPONENT_REL},
                                {"alt", html_component_type::RSPAMD_HTML_COMPONENT_ALT},
+                               {"id", html_component_type::RSPAMD_HTML_COMPONENT_ID},
                });
 
 #define msg_debug_html(...)  rspamd_conditional_debug_fast (NULL, NULL, \
index 189cae8ed80bb8e1c66b2ae49ebf0d2ee84d8909..72ae6d616ca68bfdde40eab0e8a1bedfd4d73771 100644 (file)
@@ -38,6 +38,7 @@ enum class html_component_type : std::uint8_t {
        RSPAMD_HTML_COMPONENT_SIZE,
        RSPAMD_HTML_COMPONENT_REL,
        RSPAMD_HTML_COMPONENT_ALT,
+       RSPAMD_HTML_COMPONENT_ID,
 };
 /**
  * Returns component type from a string