diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/html.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c index 5e29b3b84..137907183 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -837,8 +837,8 @@ rspamd_html_url_is_phished (rspamd_mempool_t *pool, */ gboolean obfuscation_found = FALSE; - if (g_ascii_strncasecmp (url_str, "http", 4) == 0 && - strstr (url_str, "://") != NULL) { + if (len > 4 && g_ascii_strncasecmp (url_text, "http", 4) == 0 && + rspamd_substring_search (url_text, len,"://", 3) != -1) { /* Clearly an obfuscation attempt */ obfuscation_found = TRUE; } |