Browse Source

[Fix] Fix crash in base url handling

tags/1.7.8
Vsevolod Stakhov 6 years ago
parent
commit
54b5410172
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libserver/html.c

+ 1
- 1
src/libserver/html.c View 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;

Loading…
Cancel
Save