diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-03 13:37:53 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-03 13:37:53 +0800 |
commit | e54da55d38740052b44977f5892481b684994d12 (patch) | |
tree | 74dd23daf1d78c2d163de9582df4a7b236b4a64d /mbbsd/user.c | |
parent | 2e1ce0de7d1db7c7f510cfee754c7d1e7f6b8d56 (diff) | |
download | pttbbs-e54da55d38740052b44977f5892481b684994d12.tar pttbbs-e54da55d38740052b44977f5892481b684994d12.tar.gz pttbbs-e54da55d38740052b44977f5892481b684994d12.tar.bz2 pttbbs-e54da55d38740052b44977f5892481b684994d12.tar.lz pttbbs-e54da55d38740052b44977f5892481b684994d12.tar.xz pttbbs-e54da55d38740052b44977f5892481b684994d12.tar.zst pttbbs-e54da55d38740052b44977f5892481b684994d12.zip |
(fix r2742) there was no typo in users.c
(pmore) fix search display bug in scroll mode(should be refreshed)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2745 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index d49a5893..5702b880 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -1132,8 +1132,19 @@ toregister(char *email, char *genbuf, char *phone, char *career, strncpy(cuser.justify, genbuf, REGLEN); sethomefile(buf, cuser.userid, "justify"); } + + /* + * It is intended to use BBSENAME instead of BBSNAME here. + * Because recently many poor users with poor mail clients + * (or evil mail servers) cannot handle/decode Chinese + * subjects (BBSNAME) correctly, so we'd like to use + * BBSENAME here to prevent subject being messed up. + * And please keep BBSENAME short or it may be truncated + * by evil mail servers. + */ snprintf(buf, sizeof(buf), - " " BBSNAME " - [ %s ]", getregcode(genbuf)); + " " BBSENAME " - [ %s ]", getregcode(genbuf)); + strlcpy(tmp, cuser.userid, sizeof(tmp)); strlcpy(cuser.userid, str_sysop, sizeof(cuser.userid)); #ifdef HAVEMOBILE |