commit 19eaa2c: [Fix] Exclude damaged urls from html parser

Vsevolod Stakhov vsevolod at highsecure.ru
Thu Jul 16 20:28:06 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-07-16 21:24:55 +0100
URL: https://github.com/rspamd/rspamd/commit/19eaa2c240065900fad96c842bee85969f06b564

[Fix] Exclude damaged urls from html parser

---
 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 0ba2a374a..a377cd6a7 100644
--- a/src/libserver/html.c
+++ b/src/libserver/html.c
@@ -1518,7 +1518,7 @@ rspamd_html_process_url (rspamd_mempool_t *pool, const gchar *start, guint len,
 
 	/* Filter some completely damaged urls */
 	if (rc == URI_ERRNO_OK && url->hostlen > 0 &&
-		!((url->flags & RSPAMD_URL_FLAG_OBSCURED) && (url->protocol & PROTOCOL_UNKNOWN))) {
+		!((url->protocol & PROTOCOL_UNKNOWN))) {
 		url->flags |= saved_flags;
 
 		if (has_bad_chars) {


More information about the Commits mailing list