]> source.dussan.org Git - rspamd.git/commitdiff
Fix old bug with non-capturing https urls.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 14 Nov 2014 15:10:51 +0000 (15:10 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 14 Nov 2014 15:10:51 +0000 (15:10 +0000)
src/libserver/html.c

index edf831238e14b1ade276d538eba469a34c4261ac..9c6fd0888b04b8b2b968fbb1625cd6e653c57d9d 100644 (file)
@@ -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://",