Skip multiple (bogus) colons after header field name

Some (broken) implementation sends double-colons for certain fields,
and this change makes vmime support that case.
This commit is contained in:
Jan Engelhardt 2016-10-04 10:14:37 +02:00
parent b133ce8cfb
commit 7d00709077

View File

@ -135,6 +135,7 @@ shared_ptr <headerField> headerField::parseNext
buffer.begin() + nameEnd);
// Skip ':' character
while (pos < end && buffer[pos] == ':')
++pos;
// Skip spaces between ':' and the field contents