From: Vsevolod Stakhov Date: Wed, 20 Apr 2016 09:44:29 +0000 (+0100) Subject: [Fix] Do not set obscured flag for urls starting with spaces X-Git-Tag: 1.2.4~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed77411e31cb1330ef54c8fe2b2c5eda506eddc1;p=thirdparty%2Frspamd.git [Fix] Do not set obscured flag for urls starting with spaces Issue: #593 --- diff --git a/src/libserver/html.c b/src/libserver/html.c index 793f1c5a08..3d63817dfb 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -1192,9 +1192,12 @@ rspamd_html_process_url (rspamd_mempool_t *pool, const gchar *start, guint len, if (rc == URI_ERRNO_OK) { /* Spaces in href usually mean an attempt to obfuscate URL */ + /* See https://github.com/vstakhov/rspamd/issues/593 */ +#if 0 if (has_spaces) { url->flags |= RSPAMD_URL_FLAG_OBSCURED; } +#endif return url; }