diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-11-14 15:10:51 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-11-14 15:10:51 +0000 |
commit | da496fc5ccb527a53d7fd81e311b504aef0811a3 (patch) | |
tree | 57a65525d8fce5ce47f525d3c716d28507be29b4 /src | |
parent | 46acf7be5791a164f8fa5dbc16494d8175e5b850 (diff) | |
download | rspamd-da496fc5ccb527a53d7fd81e311b504aef0811a3.tar.gz rspamd-da496fc5ccb527a53d7fd81e311b504aef0811a3.zip |
Fix old bug with non-capturing https urls.
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 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://", |