aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/html.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-23 18:58:46 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-23 18:58:46 +0000
commit663a156d5cef3310a2c2017e092626642eabba44 (patch)
tree48027f78b6b234b4a1e76131c1ec3939f86df0af /src/libserver/html.c
parent8641e1a580314988f5c80572c3507509313ab2f7 (diff)
downloadrspamd-663a156d5cef3310a2c2017e092626642eabba44.tar.gz
rspamd-663a156d5cef3310a2c2017e092626642eabba44.zip
[Fix] Fix white on white rule and add is_leaf flag
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r--src/libserver/html.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c
index a6b037861..395987cce 100644
--- a/src/libserver/html.c
+++ b/src/libserver/html.c
@@ -2324,14 +2324,16 @@ rspamd_html_process_block_tag (rspamd_mempool_t *pool, struct html_tag *tag,
fstr.len = comp->len;
rspamd_html_process_color (comp->start, comp->len,
&bl->font_color);
- msg_debug_html ("got color: %xd", bl->font_color.d.val);
+ msg_debug_html ("tag %*s; got color: %xd",
+ tag->name.len, tag->name.start, bl->font_color.d.val);
break;
case RSPAMD_HTML_COMPONENT_BGCOLOR:
fstr.begin = (gchar *) comp->start;
fstr.len = comp->len;
rspamd_html_process_color (comp->start, comp->len,
&bl->background_color);
- msg_debug_html ("got color: %xd", bl->font_color.d.val);
+ msg_debug_html ("tag %*s; got color: %xd",
+ tag->name.len, tag->name.start, bl->font_color.d.val);
if (tag->id == Tag_BODY) {
/* Set global background color */
@@ -2342,21 +2344,25 @@ rspamd_html_process_block_tag (rspamd_mempool_t *pool, struct html_tag *tag,
case RSPAMD_HTML_COMPONENT_STYLE:
bl->style.len = comp->len;
bl->style.start = comp->start;
- msg_debug_html ("got style: %*s", (gint) bl->style.len,
- bl->style.start);
+ msg_debug_html ("tag: %*s; got style: %*s",
+ tag->name.len, tag->name.start,
+ (gint) bl->style.len, bl->style.start);
rspamd_html_process_style (pool, bl, hc, comp->start, comp->len);
break;
case RSPAMD_HTML_COMPONENT_CLASS:
fstr.begin = (gchar *) comp->start;
fstr.len = comp->len;
bl->html_class = rspamd_mempool_ftokdup (pool, &fstr);
- msg_debug_html ("got class: %s", bl->html_class);
+ msg_debug_html ("tag: %*s; got class: %s",
+ tag->name.len, tag->name.start, bl->html_class);
break;
case RSPAMD_HTML_COMPONENT_SIZE:
/* Not supported by html5 */
/* FIXME maybe support it */
bl->font_size = 16;
- msg_debug_html ("got size: %*s", (gint)comp->len, comp->start);
+ msg_debug_html ("tag %*s; got size: %*s",
+ tag->name.len, tag->name.start,
+ (gint)comp->len, comp->start);
break;
default:
/* NYI */