diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-28 03:49:48 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-28 03:49:48 +0800 |
commit | 437701b2a278eabd761ba7cc059320fb1f2a00a2 (patch) | |
tree | 961b9af700ac3348745c16bfbee4257f244ab153 /mbbsd | |
parent | d8a5873de9925546f7ceb3d01d62881812f080c5 (diff) | |
download | pttbbs-437701b2a278eabd761ba7cc059320fb1f2a00a2.tar pttbbs-437701b2a278eabd761ba7cc059320fb1f2a00a2.tar.gz pttbbs-437701b2a278eabd761ba7cc059320fb1f2a00a2.tar.bz2 pttbbs-437701b2a278eabd761ba7cc059320fb1f2a00a2.tar.lz pttbbs-437701b2a278eabd761ba7cc059320fb1f2a00a2.tar.xz pttbbs-437701b2a278eabd761ba7cc059320fb1f2a00a2.tar.zst pttbbs-437701b2a278eabd761ba7cc059320fb1f2a00a2.zip |
change the valid email address char set from "[].%!@:-_;" to "[].@-_"
quote the placeholder %s of address
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@371 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/mail.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 65141096..f4ba6d64 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1,4 +1,4 @@ -/* $Id: mail.c,v 1.13 2002/06/19 13:32:23 lwms Exp $ */ +/* $Id: mail.c,v 1.14 2002/06/27 19:49:48 kcwu Exp $ */ #include "bbs.h" char currmaildir[32]; static char msg_cc[] = "\033[32m[¸s²Õ¦W³æ]\033[m\n"; @@ -94,7 +94,7 @@ int invalidaddr(char *addr) { if(*addr == '\0') return 1; /* blank */ while(*addr) { - if(not_alnum(*addr) && !strchr("[].%!@:-_;", *addr)) + if(not_alnum(*addr) && !strchr("[].@-_", *addr)) return 1; addr++; } @@ -1506,7 +1506,7 @@ int doforward(char *direct, fileheader_t *fh, int mode) { if(mode == 'Z') { sprintf(fname, TAR_PATH " cfz /tmp/home.%s.tgz home/%c/%s; " - MUTT_PATH" -a /tmp/home.%s.tgz -s 'home.%s.tgz' %s </dev/null;" + MUTT_PATH" -a /tmp/home.%s.tgz -s 'home.%s.tgz' '%s' </dev/null;" "rm /tmp/home.%s.tgz", cuser.userid, cuser.userid[0], cuser.userid, cuser.userid, cuser.userid, address, cuser.userid); |