Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177838871
D61788.1795402889.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
901 B
Referenced Files
None
Subscribers
None
D61788.1795402889.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D61788: sendmail: quote full names containing RFC 5322 specials '(' ')'
Attached
Detach File
Event Timeline