From 674d8a69a808669b540ba5452e707af67ca7f7c8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 26 Jun 2018 10:11:23 +0100 Subject: [PATCH] [Minor] Do not allow more than one base url --- src/libserver/html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5