Page MenuHomeFreeBSD

D61788.1795402889.diff
No OneTemporary

Authored By
Unknown
Size
901 B
Referenced Files
None
Subscribers
None

D61788.1795402889.diff

diff --git a/contrib/sendmail/src/util.c b/contrib/sendmail/src/util.c
--- a/contrib/sendmail/src/util.c
+++ b/contrib/sendmail/src/util.c
@@ -183,6 +183,19 @@
quoted = !quoted;
else if (!quoted)
{
+ /*
+ ** '(' and ')' are in the default MustQuoteChars
+ ** but were previously consumed by the comment
+ ** tracking below before reaching this check, so a
+ ** string with balanced parens was never flagged for
+ ** quoting even though they are specials (RFC 5322
+ ** 3.2.3) that MUAs/MTAs may treat as a comment and
+ ** silently drop.
+ */
+ if (commentlev == 0 &&
+ strchr(MustQuoteChars, *c) != NULL)
+ return false;
+
if (*c == ')')
{
/* unbalanced ')' */
@@ -193,9 +206,6 @@
}
else if (*c == '(')
commentlev++;
- else if (commentlev == 0 &&
- strchr(MustQuoteChars, *c) != NULL)
- return false;
}
c++;
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 23, 3:01 AM (43 m, 21 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41885844
Default Alt Text
D61788.1795402889.diff (901 B)

Event Timeline