Skip to content

Commit f37e297

Browse files
committed
Improved ParseException message for invalid ctrl chars in quoted-strings
1 parent 75a8b10 commit f37e297

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

MimeKit/InternetAddress.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ static bool SkipQuoted (byte[] text, ref int index, int endIndex, bool throwOnEr
358358
// the double-quote character (%d34), and the delete character (%d127).
359359
if ((c < 32 && c != 9) || c == 127) {
360360
if (throwOnError)
361-
throw new ParseException (string.Format (CultureInfo.InvariantCulture, "Invalid character in quoted-string token at offset {0}", startIndex), startIndex, index);
361+
throw new ParseException (string.Format (CultureInfo.InvariantCulture, "Invalid control character in quoted-string token at offset {0}", startIndex), startIndex, index);
362362

363363
return false;
364364
}

0 commit comments

Comments
 (0)