]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Do not allow more than one base url
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Jun 2018 09:11:23 +0000 (10:11 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Jun 2018 09:11:23 +0000 (10:11 +0100)
src/libserver/html.c

index ad73d440bdb3e41e7f87bb1313b012fed009d9b8..bdecb4d7f0d49d95d13e8125da19f27392b3a240 100644 (file)
@@ -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;
                                                }