aboutsummaryrefslogtreecommitdiffstats
path: root/test/rspamd_url_test.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-17 19:04:04 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-04-17 19:04:04 +0400
commitc0cd8e414ad614ed7a3d9c2122abffc78db7602c (patch)
tree760d166ae0d815a76c41e6237bcf4965dcfea08b /test/rspamd_url_test.c
parent83f0dbe021888839dbcc3b3d6dff48b8da21cffb (diff)
downloadrspamd-c0cd8e414ad614ed7a3d9c2122abffc78db7602c.tar.gz
rspamd-c0cd8e414ad614ed7a3d9c2122abffc78db7602c.zip
* Fix urls extracting, avoid code repeating
Diffstat (limited to 'test/rspamd_url_test.c')
-rw-r--r--test/rspamd_url_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rspamd_url_test.c b/test/rspamd_url_test.c
index 808659757..36c9e439b 100644
--- a/test/rspamd_url_test.c
+++ b/test/rspamd_url_test.c
@@ -87,7 +87,7 @@ rspamd_url_test_func ()
g_test_timer_start ();
g_test_message ("Testing text URL regexp parser");
- url_parse_text (&task, text);
+ url_parse_text (&task, text, FALSE);
TAILQ_FOREACH (url, &task.urls, next) {
msg_debug ("Found url: %s, hostname: %s, data: %s", struri (url), url->host, url->data);
@@ -104,7 +104,7 @@ rspamd_url_test_func ()
i = 0;
g_test_timer_start ();
g_test_message ("Testing html URL regexp parser");
- url_parse_html (&task, html);
+ url_parse_text (&task, html, TRUE);
TAILQ_FOREACH (url, &task.urls, next) {
msg_debug ("Found url: %s, hostname: %s, data: %s", struri (url), url->host, url->data);