From: Vsevolod Stakhov Date: Tue, 26 Jun 2018 09:11:23 +0000 (+0100) Subject: [Minor] Do not allow more than one base url X-Git-Tag: 1.7.7~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=674d8a69a808669b540ba5452e707af67ca7f7c8;p=rspamd.git [Minor] Do not allow more than one base url --- diff --git a/src/libserver/html.c b/src/libserver/html.c index ad73d440b..bdecb4d7f 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -3025,7 +3025,7 @@ rspamd_html_process_part_full (rspamd_mempool_t *pool, struct html_content *hc, prev_tag->id == Tag_HTML) { url = rspamd_html_process_url_tag (pool, cur_tag, hc); - if (url != NULL) { + if (url != NULL && hc->base_url == NULL) { /* We have a base tag available */ hc->base_url = url; }