From ed77411e31cb1330ef54c8fe2b2c5eda506eddc1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 20 Apr 2016 10:44:29 +0100 Subject: [PATCH] [Fix] Do not set obscured flag for urls starting with spaces Issue: #593 --- src/libserver/html.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.47.3