From: Vsevolod Stakhov Date: Wed, 28 Jul 2021 13:57:15 +0000 (+0100) Subject: [Minor] Fix check for image urls X-Git-Tag: 3.0~83 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b3e427079527a5bf958e1d3de52c686a7accc33b;p=rspamd.git [Minor] Fix check for image urls --- diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx index 0d76a22da..53fe815dd 100644 --- a/src/libserver/html/html.cxx +++ b/src/libserver/html/html.cxx @@ -823,9 +823,10 @@ html_process_img_tag(rspamd_mempool_t *pool, struct rspamd_url *existing; img->url->flags |= RSPAMD_URL_FLAG_IMAGE; - existing = rspamd_url_set_add_or_return(url_set, img->url); + existing = rspamd_url_set_add_or_return(url_set, + img->url); - if (existing != img->url) { + if (existing && existing != img->url) { /* * We have some other URL that could be * found, e.g. from another part. However,