commit b3e4270: [Minor] Fix check for image urls
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Jul 29 09:35:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-07-28 14:57:15 +0100
URL: https://github.com/rspamd/rspamd/commit/b3e427079527a5bf958e1d3de52c686a7accc33b
[Minor] Fix check for image urls
---
src/libserver/html/html.cxx | 5 +++--
1 file 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,
More information about the Commits
mailing list