Skip to content

Commit

Permalink
Update SmtpParser.cs (cosullivan#103)
Browse files Browse the repository at this point in the history
Do not allow `=` in esmtp-value.
  • Loading branch information
MikeA1 authored and cosullivan committed May 3, 2019
1 parent 847215d commit 7e51408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/SmtpServer/Protocol/SmtpParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ public bool TryMakeEsmtpValue(out string value)
value = null;

var token = Enumerator.Peek();
while (token.Text.Length > 0 && token.Text.ToCharArray().All(ch => (ch >= 33 && ch <= 66) || (ch >= 62 && ch <= 127)))
while (token.Text.Length > 0 && token.Text.ToCharArray().All(ch => (ch >= 33 && ch <= 60) || (ch >= 62 && ch <= 127)))
{
value += Enumerator.Take().Text;

Expand Down Expand Up @@ -1137,4 +1137,4 @@ string CompleteTokenizedText()
return String.Concat(Enumerator.Tokens.Select(token => token.Text));
}
}
}
}

0 comments on commit 7e51408

Please sign in to comment.