summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhil Pennock <pdp@exim.org>2012-04-12 19:33:48 -0700
committerPhil Pennock <pdp@exim.org>2012-04-12 19:33:48 -0700
commit7db8d07471d9e75fa506addff7f973c10a710895 (patch)
tree61b348fd473aca8b5af5cb0de8a66b5ee98e0281 /src
parent76ba6b0ad36260e9009b2d0861e222062589c514 (diff)
Handle TAB, not just SP, in MAIL args.
Analysis, diagnosis and variant patch by Todd Lyons.
Diffstat (limited to 'src')
-rw-r--r--src/src/smtp_in.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c
index e79f0a202..476bbf0c2 100644
--- a/src/src/smtp_in.c
+++ b/src/src/smtp_in.c
@@ -983,7 +983,8 @@ if (*v != '=') return FALSE;
n = v;
while(isalpha(n[-1])) n--;
-if (n[-1] != ' ') return FALSE;
+/* RFC says SP, but TAB seen in wild and other major MTAs accept it */
+if (!isspace(n[-1])) return FALSE;
n[-1] = 0;
*name = n;