diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-06-15 13:46:29 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-06-15 13:46:29 +0100 |
commit | cc46cbc2c1b641b25c3ef271c9f1770121d8cefd (patch) | |
tree | 4c9595c605f90351bb80ad6db19b49e681deeb5e /src | |
parent | daeba37c5557e5c33d6e752a204b723e657532a4 (diff) | |
download | rspamd-cc46cbc2c1b641b25c3ef271c9f1770121d8cefd.tar.gz rspamd-cc46cbc2c1b641b25c3ef271c9f1770121d8cefd.zip |
[Minor] Html: Support ID component
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/html/html.cxx | 1 | ||||
-rw-r--r-- | src/libserver/html/html_tag.hxx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx index 5c0753d4a..fda68bf04 100644 --- a/src/libserver/html/html.cxx +++ b/src/libserver/html/html.cxx @@ -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, \ diff --git a/src/libserver/html/html_tag.hxx b/src/libserver/html/html_tag.hxx index 189cae8ed..72ae6d616 100644 --- a/src/libserver/html/html_tag.hxx +++ b/src/libserver/html/html_tag.hxx @@ -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 |