aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/html.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-20 10:44:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-20 10:44:56 +0100
commited77411e31cb1330ef54c8fe2b2c5eda506eddc1 (patch)
tree2bd8a673b0ba5541880212a2145104186eed3246 /src/libserver/html.c
parentd7245e06bd4b31e809c78e2505dd36b9056800dd (diff)
downloadrspamd-ed77411e31cb1330ef54c8fe2b2c5eda506eddc1.tar.gz
rspamd-ed77411e31cb1330ef54c8fe2b2c5eda506eddc1.zip
[Fix] Do not set obscured flag for urls starting with spaces
Issue: #593
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r--src/libserver/html.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c
index 793f1c5a0..3d63817df 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;
}