]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Do not set obscured flag for urls starting with spaces
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Apr 2016 09:44:29 +0000 (10:44 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Apr 2016 09:44:56 +0000 (10:44 +0100)
Issue: #593

src/libserver/html.c

index 793f1c5a08f97ee5fc9e67fed117eccc6dfca727..3d63817dfba1332e980a17964116cf2326a5a677 100644 (file)
@@ -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;
        }