diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-06-17 16:17:24 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-06-17 16:17:24 +0100 |
commit | 4f6b0289aeddee5f79c343749b89f728ae75b906 (patch) | |
tree | e1242584609322e4f62451cfd722e5ca836c7dfd | |
parent | 47d9d69a597c834ab094d7f6b78fdb18998165ca (diff) | |
download | rspamd-4f6b0289aeddee5f79c343749b89f728ae75b906.tar.gz rspamd-4f6b0289aeddee5f79c343749b89f728ae75b906.zip |
Another fix for tld urls.
-rw-r--r-- | src/url.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1230,11 +1230,11 @@ url_tld_end (const gchar *begin, const gchar *end, const gchar *pos, url_match_t /* A url must be finished by tld, so it must be followed by punctuation or by space character */ p = pos + strlen (match->pattern); - if (p == end || g_ascii_isspace (*(p + 1)) || g_ascii_ispunct (*(p + 1))) { + if (p == end || g_ascii_isspace (*p) || g_ascii_ispunct (*p)) { match->m_len = p - match->m_begin; return TRUE; } - else if (*(p + 1) == '/' || *(p + 1) == ':') { + else if (*p == '/' || *p == ':') { /* Parse arguments, ports by normal way by url default function */ p = match->m_begin; /* Check common prefix */ |