diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2013-11-19 10:22:43 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2013-11-19 10:22:43 +0000 |
commit | ffd19e45a3f46a9068b514b61e1d63085f0af6a9 (patch) | |
tree | 128b08dc319ed340ecb237eefd4e0955fbe1c729 /usr.sbin/smtpd/util.c | |
parent | 0ea6441da3958a28e963ef66945464d4ec0a982d (diff) |
Allow '*' in the user part of mailaddresses. By default, potentially dangerous
characters are replaced when expanding for local deliveries, unless the "raw"
modifier is specified.
Diffstat (limited to 'usr.sbin/smtpd/util.c')
-rw-r--r-- | usr.sbin/smtpd/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/util.c b/usr.sbin/smtpd/util.c index a608a32a164..3476ce93b19 100644 --- a/usr.sbin/smtpd/util.c +++ b/usr.sbin/smtpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.101 2013/10/29 14:30:05 eric Exp $ */ +/* $OpenBSD: util.c,v 1.102 2013/11/19 10:22:42 eric Exp $ */ /* * Copyright (c) 2000,2001 Markus Friedl. All rights reserved. @@ -445,7 +445,7 @@ valid_localpart(const char *s) * RFC 5322 defines theses characters as valid: !#$%&'*+-/=?^_`{|}~ * some of them are potentially dangerous, and not so used after all. */ -#define IS_ATEXT(c) (isalnum((int)(c)) || strchr("!%+-/=_", (c))) +#define IS_ATEXT(c) (isalnum((int)(c)) || strchr("*!%+-/=_", (c))) nextatom: if (! IS_ATEXT(*s) || *s == '\0') return 0; |