From: Vsevolod Stakhov Date: Fri, 14 Nov 2014 15:10:51 +0000 (+0000) Subject: Fix old bug with non-capturing https urls. X-Git-Tag: 0.7.5~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=da496fc5ccb527a53d7fd81e311b504aef0811a3;p=rspamd.git Fix old bug with non-capturing https urls. --- 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://",