sendmail allow "=" symbol in recipient, closes 10241
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
2ab9403119
commit
1121b4e568
@ -150,7 +150,13 @@ static char *sane_address(char *str)
|
|||||||
trim(str);
|
trim(str);
|
||||||
s = str;
|
s = str;
|
||||||
while (*s) {
|
while (*s) {
|
||||||
if (!isalnum(*s) && !strchr("+_-.@", *s)) {
|
/* Standard allows these chars in username without quoting:
|
||||||
|
* /!#$%&'*+-=?^_`{|}~
|
||||||
|
* and allows dot (.) with some restrictions.
|
||||||
|
* I chose to only allow a saner subset.
|
||||||
|
* I propose to expand it only on user's request.
|
||||||
|
*/
|
||||||
|
if (!isalnum(*s) && !strchr("=+_-.@", *s)) {
|
||||||
bb_error_msg("bad address '%s'", str);
|
bb_error_msg("bad address '%s'", str);
|
||||||
/* returning "": */
|
/* returning "": */
|
||||||
str[0] = '\0';
|
str[0] = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user