summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-02-26 14:40:17 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-02-26 14:40:17 +0800
commit5acbc49014b326f5d42052c0717ac25539d165e7 (patch)
tree794cb383214254a673ca4392db37d75dc6273a2c
parent9c09a82a72f1ae273b25a8cb712ba601e248934a (diff)
downloadpttbbs-5acbc49014b326f5d42052c0717ac25539d165e7.tar
pttbbs-5acbc49014b326f5d42052c0717ac25539d165e7.tar.gz
pttbbs-5acbc49014b326f5d42052c0717ac25539d165e7.tar.bz2
pttbbs-5acbc49014b326f5d42052c0717ac25539d165e7.tar.lz
pttbbs-5acbc49014b326f5d42052c0717ac25539d165e7.tar.xz
pttbbs-5acbc49014b326f5d42052c0717ac25539d165e7.tar.zst
pttbbs-5acbc49014b326f5d42052c0717ac25539d165e7.zip
Disable BN_ALLPOST in QueryURL.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5573 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/bbs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c
index a199c691..1465c8ef 100644
--- a/pttbbs/mbbsd/bbs.c
+++ b/pttbbs/mbbsd/bbs.c
@@ -3684,6 +3684,9 @@ view_postinfo(int ent GCC_UNUSED, const fileheader_t * fhdr,
prints("¢x\n");
}
else if ((bp->brdattr & (BRD_HIDE | BRD_OVER18)) ||
+#ifdef BN_ALLPOST
+ strcmp(bp->brdname, BN_ALLPOST) == 0 ||
+#endif
(bp->level && !(bp->brdattr & BRD_POSTMASK)) // !POSTMASK = restricted read
)
{