diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-13 17:03:27 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-13 17:07:23 +0100 |
commit | 70cbb6d39a06eb6f71832517bfd788ad217b6965 (patch) | |
tree | 5e0e41033565b271021072aa5c2455f0e79a91a7 /src/libserver/html.c | |
parent | d2af2a1d52a8f9b26b7c77b12ce555db24f07df4 (diff) | |
download | rspamd-70cbb6d39a06eb6f71832517bfd788ad217b6965.tar.gz rspamd-70cbb6d39a06eb6f71832517bfd788ad217b6965.zip |
[Rework] Rework exceptions and newlines processing
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r-- | src/libserver/html.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c index 0a25e488a..1188515c5 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -1601,7 +1601,7 @@ rspamd_html_process_part_full (rspamd_mempool_t *pool, struct html_content *hc, gint substate = 0, len, href_offset = -1; struct html_tag *cur_tag = NULL; struct rspamd_url *url = NULL, *turl; - struct process_exception *ex; + struct rspamd_process_exception *ex; enum { parse_start = 0, tag_begin, @@ -1977,6 +1977,7 @@ rspamd_html_process_part_full (rspamd_mempool_t *pool, struct html_content *hc, ex = rspamd_mempool_alloc (pool, sizeof (*ex)); ex->pos = href_offset; ex->len = dest->len - href_offset; + ex->type = RSPAMD_EXCEPTION_URL; *exceptions = g_list_prepend (*exceptions, ex); } |