From 22bb8201118bb815e2fc3a3c955b71fda57bf4b3 Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 1 Aug 2011 01:29:26 +0000 Subject: do not allow changing topic in ALLPOST git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5384 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/bbs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index 486bbd53..6ead53d2 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -2546,7 +2546,7 @@ cite_post(int ent, const fileheader_t * fhdr, const char *direct) int edit_title(int ent, fileheader_t * fhdr, const char *direct) { - char genbuf[200] = ""; + char genbuf[PATHLEN] = ""; fileheader_t tmpfhdr = *fhdr; int dirty = 0; int allow = 0; @@ -2556,6 +2556,8 @@ edit_title(int ent, fileheader_t * fhdr, const char *direct) allow = 0; else if (HasUserPerm(PERM_SYSOP)) allow = 2; + else if (strcmp(BN_ALLPOST, currboard) == 0) + allow = 0; else if (currmode & MODE_BOARD || is_file_owner(fhdr, &cuser)) allow = 1; -- cgit v1.2.3