diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-02 17:52:09 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-07-02 17:52:09 +0100 |
commit | 54b5410172c7c95948f59ad6ecb48f0f2fc0698e (patch) | |
tree | ba7882de6476aabdaf2fda25ea90d57d60ec2bae /src/libserver/html.c | |
parent | 101782e459ca2cb4f198d38cce844859f3367885 (diff) | |
download | rspamd-54b5410172c7c95948f59ad6ecb48f0f2fc0698e.tar.gz rspamd-54b5410172c7c95948f59ad6ecb48f0f2fc0698e.zip |
[Fix] Fix crash in base url handling
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r-- | src/libserver/html.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c index 44ee1a962..24a471a84 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -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; |