aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-21 14:48:39 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-21 14:48:39 +0000
commit3a554fc5954cdcaac9a2af02719735efeba0e392 (patch)
tree2d502572b00dd8bc08361c2f03dc4f486979f856 /src/lua/lua_task.c
parent81e8e5e413ad8ba9dfb8b8f7da5ab2939dac4534 (diff)
downloadrspamd-3a554fc5954cdcaac9a2af02719735efeba0e392.tar.gz
rspamd-3a554fc5954cdcaac9a2af02719735efeba0e392.zip
[Fix] Couple of fixes for date parsing
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 96c03847c..7e6ba5b10 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -2596,7 +2596,7 @@ lua_task_get_date (lua_State *L)
struct rspamd_mime_header *h;
h = g_ptr_array_index (hdrs, 0);
- tt = rspamd_parse_smtp_date (h->raw_value, h->raw_len);
+ tt = rspamd_parse_smtp_date (h->decoded, strlen (h->decoded));
if (!gmt) {
localtime_r (&tt, &t);