]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Head tags are default invisible
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Jun 2021 11:26:15 +0000 (12:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Jun 2021 11:26:15 +0000 (12:26 +0100)
src/libserver/html/html.cxx

index 694a172b2ac4bce3ddedd851b364c5754623b77f..6a7a6facf031bf2e2bf64faf7dc2532ca774492c 100644 (file)
@@ -1655,6 +1655,9 @@ html_process_input(rspamd_mempool_t *pool,
                                if (tag->flags & CM_BLOCK) {
                                        tag->block->set_display(css::css_display_value::DISPLAY_BLOCK);
                                }
+                               else if (tag->flags & CM_HEAD) {
+                                       tag->block->set_display(css::css_display_value::DISPLAY_HIDDEN);
+                               }
                                else {
                                        tag->block->set_display(css::css_display_value::DISPLAY_INLINE);
                                }