aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-06-15 13:46:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-06-15 13:46:29 +0100
commitcc46cbc2c1b641b25c3ef271c9f1770121d8cefd (patch)
tree4c9595c605f90351bb80ad6db19b49e681deeb5e /src
parentdaeba37c5557e5c33d6e752a204b723e657532a4 (diff)
downloadrspamd-cc46cbc2c1b641b25c3ef271c9f1770121d8cefd.tar.gz
rspamd-cc46cbc2c1b641b25c3ef271c9f1770121d8cefd.zip
[Minor] Html: Support ID component
Diffstat (limited to 'src')
-rw-r--r--src/libserver/html/html.cxx1
-rw-r--r--src/libserver/html/html_tag.hxx1
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