commit cc46cbc: [Minor] Html: Support ID component

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Jun 15 14:28:05 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-06-15 13:46:29 +0100
URL: https://github.com/rspamd/rspamd/commit/cc46cbc2c1b641b25c3ef271c9f1770121d8cefd

[Minor] Html: Support ID component

---
 src/libserver/html/html.cxx     | 1 +
 src/libserver/html/html_tag.hxx | 1 +
 2 files changed, 2 insertions(+)

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


More information about the Commits mailing list