diff options
author | Daniele Forsi | 2013-02-10 20:14:12 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-02-10 20:14:12 +0100 |
commit | ea5c8334de82d6e9f0705e8a2c4a3ab0b29731ad (patch) | |
tree | d14a1f6c571e274780b0f1d1bc1270c86670fa38 | |
parent | fe8858c4e913993a45e9df5874dea75f9478819f (diff) | |
download | libvformat-ea5c8334de82d6e9f0705e8a2c4a3ab0b29731ad.tar.gz libvformat-ea5c8334de82d6e9f0705e8a2c4a3ab0b29731ad.tar.bz2 |
Remove leading space when unfolding
According to RFC 2425 paragraph 5.8.1, the leading whitespace on folded lines
must be removed when unfolding happens.
-rw-r--r-- | src/vf_parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vf_parser.c b/src/vf_parser.c index 2c7221c..1197154 100644 --- a/src/vf_parser.c +++ b/src/vf_parser.c @@ -333,9 +333,9 @@ bool_t vf_parse_text( /* Ignore */ } else - if (SPACE == c) + if ((SPACE == c) || (TAB == c)) { - ok = append_to_curr_string(&(p_parse->prop.value.v.s), NULL, &c, 1); + /* Ignore leading white space characters when unfolding */ p_parse->state = _VF_STATE_RFC822VALUE; } |