diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-30 18:42:36 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-30 18:42:36 +0400 |
commit | b227b759d6775b4ad3dc1a9739e16ed93e0e345e (patch) | |
tree | 907246df31ae4a7e1c5d86706130a7be3474dad9 /src/url.c | |
parent | 17b59dcc033cf8627a057b76b4cfc2735d9d1c82 (diff) | |
download | rspamd-b227b759d6775b4ad3dc1a9739e16ed93e0e345e.tar.gz rspamd-b227b759d6775b4ad3dc1a9739e16ed93e0e345e.zip |
* Strip url line from spaces
Diffstat (limited to 'src/url.c')
-rw-r--r-- | src/url.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |