diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-16 21:24:55 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-16 21:24:55 +0100 |
commit | 19eaa2c240065900fad96c842bee85969f06b564 (patch) | |
tree | 84dca80a5b2dc8558fe994523a251b75a9cb59ec /src/libserver | |
parent | f722832e3aba64438a7ca132a56db00bb182e2f6 (diff) | |
download | rspamd-19eaa2c240065900fad96c842bee85969f06b564.tar.gz rspamd-19eaa2c240065900fad96c842bee85969f06b564.zip |
[Fix] Exclude damaged urls from html parser
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/html.c | 2 |
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) { |