summaryrefslogtreecommitdiffstats
path: root/src/libserver/html
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-28 14:57:15 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-29 10:33:31 +0100
commitb3e427079527a5bf958e1d3de52c686a7accc33b (patch)
treedee60aebbfaab2e1a62dbd4c9a50cccaee4a7a47 /src/libserver/html
parentcb7d74e84f4804a97f647e22901026f234dcfaae (diff)
downloadrspamd-b3e427079527a5bf958e1d3de52c686a7accc33b.tar.gz
rspamd-b3e427079527a5bf958e1d3de52c686a7accc33b.zip
[Minor] Fix check for image urls
Diffstat (limited to 'src/libserver/html')
-rw-r--r--src/libserver/html/html.cxx5
1 files changed, 3 insertions, 2 deletions
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,