From da496fc5ccb527a53d7fd81e311b504aef0811a3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 14 Nov 2014 15:10:51 +0000 Subject: [PATCH] Fix old bug with non-capturing https urls. --- src/libserver/html.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libserver/html.c b/src/libserver/html.c index edf831238..9c6fd0888 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -874,8 +874,8 @@ parse_tag_url (struct rspamd_task *task, rspamd_url_unescape (url_text); decode_entitles (url_text, NULL); - if (g_ascii_strncasecmp (url_text, "http://", - sizeof ("http://") - 1) != 0 && + if (g_ascii_strncasecmp (url_text, "http", + sizeof ("http") - 1) != 0 && g_ascii_strncasecmp (url_text, "www", sizeof ("www") - 1) != 0 && g_ascii_strncasecmp (url_text, "ftp://", -- 2.39.5