aboutsummaryrefslogtreecommitdiffstats
path: root/src/url.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-30 18:42:36 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-30 18:42:36 +0400
commitb227b759d6775b4ad3dc1a9739e16ed93e0e345e (patch)
tree907246df31ae4a7e1c5d86706130a7be3474dad9 /src/url.c
parent17b59dcc033cf8627a057b76b4cfc2735d9d1c82 (diff)
downloadrspamd-b227b759d6775b4ad3dc1a9739e16ed93e0e345e.tar.gz
rspamd-b227b759d6775b4ad3dc1a9739e16ed93e0e345e.zip
* Strip url line from spaces
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/url.c b/src/url.c
index 6f17f1a6d..e11d30f82 100644
--- a/src/url.c
+++ b/src/url.c
@@ -907,6 +907,7 @@ url_parse_text (memory_pool_t *pool, struct worker_task *task, struct mime_text_
if (g_tree_lookup (is_html ? part->html_urls : part->urls, url_str) == NULL) {
new = memory_pool_alloc (pool, sizeof (struct uri));
if (new != NULL) {
+ g_strstrip (url_str);
rc = parse_uri (new, url_str, pool);
if (rc != URI_ERRNO_EMPTY && rc != URI_ERRNO_NO_HOST) {
if (g_tree_lookup (is_html ? part->html_urls : part->urls, url_str) == NULL) {