diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-16 21:25:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-16 21:25:10 +0100 |
commit | bdd5c1ed32352ad0c8b031990dcd457c53ef9e0b (patch) | |
tree | 47aa2ede4e43047ed2a47e87218c268c7a9d38d9 /src/libserver | |
parent | 19eaa2c240065900fad96c842bee85969f06b564 (diff) | |
download | rspamd-bdd5c1ed32352ad0c8b031990dcd457c53ef9e0b.tar.gz rspamd-bdd5c1ed32352ad0c8b031990dcd457c53ef9e0b.zip |
[Minor] Oops, fix crash
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/html.c | 2 | ||||
-rw-r--r-- | src/libserver/html.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c index a377cd6a7..518de98fa 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -1774,6 +1774,7 @@ rspamd_html_process_img_tag (rspamd_mempool_t *pool, struct html_tag *tag, cur = tag->params->head; img = rspamd_mempool_alloc0 (pool, sizeof (*img)); img->tag = tag; + tag->flags |= FL_IMAGE; while (cur) { comp = cur->data; @@ -3180,6 +3181,7 @@ rspamd_html_process_part_full (rspamd_mempool_t *pool, msg_debug_html ("got valid base tag"); hc->base_url = url; cur_tag->extra = url; + cur_tag->flags |= FL_HREF; } else { msg_debug_html ("got invalid base tag!"); diff --git a/src/libserver/html.h b/src/libserver/html.h index 377eda430..29e4dc29b 100644 --- a/src/libserver/html.h +++ b/src/libserver/html.h @@ -105,6 +105,7 @@ struct html_block { #define FL_IGNORE (1 << 27) #define FL_BLOCK (1 << 28) #define FL_HREF (1 << 29) +#define FL_IMAGE (1 << 30) struct html_tag { gint id; |