]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix crash in base url handling
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 2 Jul 2018 16:52:09 +0000 (17:52 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 2 Jul 2018 16:52:09 +0000 (17:52 +0100)
src/libserver/html.c

index 44ee1a962921e1653f68653693b460e92308f4bf..24a471a84edf3a4afa31af6fc7646a46ab48d029 100644 (file)
@@ -1684,7 +1684,7 @@ rspamd_html_process_url_tag (rspamd_mempool_t *pool, struct html_tag *tag,
                                                        3 /* for :// */;
                                        buf = rspamd_mempool_alloc (pool, len + 1);
                                        rspamd_snprintf (buf, len + 1, "%*s://%*s/%*s",
-                                                       hc->base_url->protocollen, hc->base_url->protocol,
+                                                       hc->base_url->protocollen, hc->base_url->string,
                                                        hc->base_url->hostlen, hc->base_url->host,
                                                        (gint)orig_len, start);
                                        start = buf;