aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-07-16 21:24:55 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-07-16 21:24:55 +0100
commit19eaa2c240065900fad96c842bee85969f06b564 (patch)
tree84dca80a5b2dc8558fe994523a251b75a9cb59ec /src/libserver
parentf722832e3aba64438a7ca132a56db00bb182e2f6 (diff)
downloadrspamd-19eaa2c240065900fad96c842bee85969f06b564.tar.gz
rspamd-19eaa2c240065900fad96c842bee85969f06b564.zip
[Fix] Exclude damaged urls from html parser
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/html.c2
1 files changed, 1 insertions, 1 deletions
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) {