return TRUE;
}
else {
+#ifndef WITH_HYPERSCAN
/*
* Here we have just '@', so we need to find both start and end of the
* pattern
match->m_len = p - c;
return TRUE;
}
+#else
+ return TRUE;
+#endif
}
return FALSE;
return 0;
}
- pos = text + match_pos;
+ pos = text + match_start;
if (!rspamd_url_trie_is_match (matcher, pos, text + len)) {
return 0;
cb->fin = m.m_begin + m.m_len;
url = rspamd_mempool_alloc0 (pool, sizeof (struct rspamd_url));
g_strstrip (cb->url_str);
- rc = rspamd_url_parse (url, cb->url_str, m.m_len + 1, pool);
+ rc = rspamd_url_parse (url, cb->url_str, m.m_len, pool);
if (rc == URI_ERRNO_OK && url->hostlen > 0) {
if (cb->func) {
from = 0;
}
- ret = cbd->cb (cbd->mp, id, from, to - 1, cbd->in, cbd->len, cbd->ud);
+ ret = cbd->cb (cbd->mp, id, from, to, cbd->in, cbd->len, cbd->ud);
cbd->nfound ++;
cbd->ret = ret;