summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Daniele Forsi2013-02-10 20:14:12 +0100
committerGravatar Nikias Bassen2013-02-10 20:14:12 +0100
commitea5c8334de82d6e9f0705e8a2c4a3ab0b29731ad (patch)
treed14a1f6c571e274780b0f1d1bc1270c86670fa38 /src
parentfe8858c4e913993a45e9df5874dea75f9478819f (diff)
downloadlibvformat-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.
Diffstat (limited to 'src')
-rw-r--r--src/vf_parser.c4
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;
}