summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-01 03:00:35 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-01 03:00:35 +0800
commitae14633079f69c0505d5f5c85fff42f249623cde (patch)
treeb870a22dea7d68a71abe807c09c0d25994a36717
parent02560ed28e084817ca159f1299994718bcea5a3f (diff)
downloadpttbbs-ae14633079f69c0505d5f5c85fff42f249623cde.tar
pttbbs-ae14633079f69c0505d5f5c85fff42f249623cde.tar.gz
pttbbs-ae14633079f69c0505d5f5c85fff42f249623cde.tar.bz2
pttbbs-ae14633079f69c0505d5f5c85fff42f249623cde.tar.lz
pttbbs-ae14633079f69c0505d5f5c85fff42f249623cde.tar.xz
pttbbs-ae14633079f69c0505d5f5c85fff42f249623cde.tar.zst
pttbbs-ae14633079f69c0505d5f5c85fff42f249623cde.zip
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1659 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/mbbsd.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index ba748e5c..a940a15b 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -548,6 +548,14 @@ login_query()
output("1", 1);
/* hint */
+
+if (0){ // clifflu <04/04/01> SECURITY BUG
+ clear() ;
+ move (5,5) ;
+ outs("由於系統安全性問題, 系統緊急停止服務. \n將在修復後重新開啟. 向各位致上最高的歉意\n clifflu 代發") ;
+ igetch() ;
+ exit(0) ;
+}
attempts = 0;
while (1) {
@@ -562,7 +570,6 @@ login_query()
#endif
getdata(20, 0, "請輸入代號,或以[guest]參觀,以[new]註冊:",
uid, sizeof(uid), DOECHO);
-
#ifdef CONVERT
/* switch to gb mode if uid end with '.' */
len = strlen(uid);
@@ -615,7 +622,7 @@ login_query()
break;
}
} else { /* guest */
- strcpy(cuser->userid, STR_GUEST);
+ if (initcuser(uid)< 1) exit (0) ;
cuser->userlevel = 0;
cuser->uflag = COLOR_FLAG | PAGER_FLAG | BRDSORT_FLAG | MOVIE_FLAG;
mkuserdir(cuser->userid);