diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-05 09:45:32 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-05 09:45:32 +0100 |
commit | a976f102cda0df5d85f46d471273d9b5a7a231a5 (patch) | |
tree | c6bf9495420ca0247639cdb781d63603d1891ee6 /src/libserver/html.c | |
parent | b679ef76a23e43a88ab1b0af722de4b13bb0cff3 (diff) | |
download | rspamd-a976f102cda0df5d85f46d471273d9b5a7a231a5.tar.gz rspamd-a976f102cda0df5d85f46d471273d9b5a7a231a5.zip |
[Feature] Store content length for HTML tags
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r-- | src/libserver/html.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c index 57a0dfa88..a65dd9a95 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -1830,6 +1830,10 @@ rspamd_html_process_part_full (rspamd_mempool_t *pool, struct html_content *hc, save_space = FALSE; } } + + if (cur_tag) { + cur_tag->content_length ++; + } } else { if (c != p) { |