email-json: delete white space from "from"

The From field is handled separatly and it could also starts by
white spaces.
pull/1671/head
Eric Leblond 10 years ago
parent abcaf46193
commit 431dc155aa

@ -240,7 +240,8 @@ json_t *JsonEmailLogJsonData(const Flow *f, void *state, void *vtx, uint64_t tx_
(size_t)field->value_len);
if (likely(s != NULL)) {
//printf("From: \"%s\"\n", s);
json_object_set_new(sjs, "from", json_string(s));
char * sp = SkipWhiteSpaceTill(s, s + strlen(s));
json_object_set_new(sjs, "from", json_string(sp));
SCFree(s);
}
}

Loading…
Cancel
Save