diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-14 13:30:55 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-14 13:30:55 +0000 |
commit | b22485f657c40c9b9fda9675d25c9294288c5732 (patch) | |
tree | 2ade5a2bfb8d39c7c1379dcc3ff72bb6b27c4188 /src/libserver/html.h | |
parent | e0fa8bf017a672d178f9024eeb46ce81eeaf188c (diff) | |
download | rspamd-b22485f657c40c9b9fda9675d25c9294288c5732.tar.gz rspamd-b22485f657c40c9b9fda9675d25c9294288c5732.zip |
Allow processing images urls for SURBL
Diffstat (limited to 'src/libserver/html.h')
-rw-r--r-- | src/libserver/html.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libserver/html.h b/src/libserver/html.h index 3fe166961..c16e7b040 100644 --- a/src/libserver/html.h +++ b/src/libserver/html.h @@ -112,4 +112,16 @@ GByteArray* rspamd_html_process_part_full (rspamd_mempool_t *pool, */ gboolean rspamd_html_tag_seen (struct html_content *hc, const gchar *tagname); +/** + * Extract URL from HTML tag component and sets component elements if needed + * @param pool + * @param start + * @param len + * @param comp + * @return + */ +struct rspamd_url * rspamd_html_process_url (rspamd_mempool_t *pool, + const gchar *start, guint len, + struct html_tag_component *comp); + #endif |