summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-17 16:17:24 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-17 16:17:24 +0100
commit4f6b0289aeddee5f79c343749b89f728ae75b906 (patch)
treee1242584609322e4f62451cfd722e5ca836c7dfd
parent47d9d69a597c834ab094d7f6b78fdb18998165ca (diff)
downloadrspamd-4f6b0289aeddee5f79c343749b89f728ae75b906.tar.gz
rspamd-4f6b0289aeddee5f79c343749b89f728ae75b906.zip
Another fix for tld urls.
-rw-r--r--src/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/url.c b/src/url.c
index 9ddce38dd..eb03198d7 100644
--- a/src/url.c
+++ b/src/url.c
@@ -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 */