diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-10-12 21:49:44 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-10-12 21:49:44 +0400 |
commit | 8d3750f608caf9bd6cc390da494381ff5f36e57e (patch) | |
tree | ad0a3b73d732658834891275cbdcbd706240582d /src | |
parent | 9c867f8a27255ec15a87675f0bd037fddb30a440 (diff) | |
download | rspamd-8d3750f608caf9bd6cc390da494381ff5f36e57e.tar.gz rspamd-8d3750f608caf9bd6cc390da494381ff5f36e57e.zip |
Get rid of some false-positive urls detections.
Diffstat (limited to 'src')
-rw-r--r-- | src/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1277,7 +1277,7 @@ static gboolean url_web_start (const gchar *begin, const gchar *end, const gchar *pos, url_match_t *match) { /* Check what we have found */ - if (pos > begin && *pos == 'w' && *(pos + 1) == 'w' && *(pos + 2) == 'w') { + if (pos > begin && (g_ascii_strncasecmp (pos, "www", 3) == 0 || g_ascii_strncasecmp (pos, "ftp", 3) == 0)) { if (!is_open_brace (*(pos - 1)) && !g_ascii_isspace (*(pos - 1))) { return FALSE; } |