aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/url.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-19 15:19:49 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-19 15:19:49 +0000
commitcdfe9ccd2c199b038b2b9005be92865f16b6e360 (patch)
tree8fb57e436c766d7201b23736b304084ccc041016 /src/libserver/url.c
parentec2a5b3cf8392609a7cd9e40959238ba06d5806e (diff)
downloadrspamd-cdfe9ccd2c199b038b2b9005be92865f16b6e360.tar.gz
rspamd-cdfe9ccd2c199b038b2b9005be92865f16b6e360.zip
Fix raw vs parsed reperesentations.
Raw parts are now: - decoded b64/qp, but *NOT* converted to utf-8 Processed parts are now: - converted to UTF-8 - normalized if needed (e.g. HTML tags are stripped)
Diffstat (limited to 'src/libserver/url.c')
-rw-r--r--src/libserver/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index 13c7cde7a..f64258625 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -1829,7 +1829,7 @@ url_parse_text (rspamd_mempool_t * pool,
gchar *p, *end, *begin;
- if (!part->orig->data || part->orig->len == 0) {
+ if (part->content == NULL || part->content->len == 0) {
msg_warn ("got empty text part");
return;
}